Explorar el Código

* scripts/Dpkg/Source/Patch.pm: Bugfix: use return instead of next in function.

Raphael Hertzog hace 18 años
padre
commit
80fc3062f3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      scripts/Dpkg/Source/Patch.pm

+ 1 - 1
scripts/Dpkg/Source/Patch.pm

@@ -140,7 +140,7 @@ sub add_diff_directory {
     my %files_in_new;
     my $scan_new = sub {
         my $fn = File::Spec->abs2rel($_, $new);
-        next if &$diff_ignore($fn);
+        return if &$diff_ignore($fn);
         $files_in_new{$fn} = 1;
         lstat("$new/$fn") || syserr(_g("cannot stat file %s"), "$new/$fn");
         my $mode = S_IMODE((lstat(_))[2]);