]> err.no Git - dpkg/commitdiff
Fix return value of loadvcs
authorFrank Lichtenheld <djpig@debian.org>
Sun, 10 Feb 2008 20:22:52 +0000 (21:22 +0100)
committerFrank Lichtenheld <djpig@debian.org>
Sun, 10 Feb 2008 20:22:52 +0000 (21:22 +0100)
* scripts/dpkg-source.pl (loadvcs): Don't return a
true value if the require failed.

scripts/dpkg-source.pl

index b33268e9004e4cf3185f868b625f527533d3c339..7ad4ccb8f32415ece229108d31b3828bd7b04f70 100755 (executable)
@@ -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;
 }