Преглед изворни кода

Fix return value of loadvcs

* scripts/dpkg-source.pl (loadvcs): Don't return a
true value if the require failed.
Frank Lichtenheld пре 18 година
родитељ
комит
b7e829edf1
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      scripts/dpkg-source.pl

+ 2 - 1
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;
 }