Przeglądaj źródła

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

Raphael Hertzog 18 lat temu
rodzic
commit
80fc3062f3
1 zmienionych plików z 1 dodań i 1 usunięć
  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 %files_in_new;
     my $scan_new = sub {
     my $scan_new = sub {
         my $fn = File::Spec->abs2rel($_, $new);
         my $fn = File::Spec->abs2rel($_, $new);
-        next if &$diff_ignore($fn);
+        return if &$diff_ignore($fn);
         $files_in_new{$fn} = 1;
         $files_in_new{$fn} = 1;
         lstat("$new/$fn") || syserr(_g("cannot stat file %s"), "$new/$fn");
         lstat("$new/$fn") || syserr(_g("cannot stat file %s"), "$new/$fn");
         my $mode = S_IMODE((lstat(_))[2]);
         my $mode = S_IMODE((lstat(_))[2]);