From: Raphael Hertzog Date: Wed, 12 Mar 2008 09:32:20 +0000 (+0100) Subject: * scripts/Dpkg/Source/Patch.pm: Bugfix: use return instead of next in function. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80fc3062f3d0c980b99b1a457140476567ef6957;p=dpkg * scripts/Dpkg/Source/Patch.pm: Bugfix: use return instead of next in function. --- diff --git a/scripts/Dpkg/Source/Patch.pm b/scripts/Dpkg/Source/Patch.pm index b272124f..2135be0d 100644 --- a/scripts/Dpkg/Source/Patch.pm +++ b/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]);