From: Frank Lichtenheld Date: Sun, 10 Feb 2008 20:22:52 +0000 (+0100) Subject: Fix return value of loadvcs X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7e829edf17da73281e8a1ca3ff6a3209a7f2fb6;p=dpkg Fix return value of loadvcs * scripts/dpkg-source.pl (loadvcs): Don't return a true value if the require failed. --- diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl index b33268e9..7ad4ccb8 100755 --- a/scripts/dpkg-source.pl +++ b/scripts/dpkg-source.pl @@ -209,7 +209,8 @@ sub loadvcs { my $vcs = shift; my $mod = "Dpkg::Source::VCS::$vcs"; eval qq{require $mod}; - return $@ || import $mod; + return if $@; + return import $mod; }