summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Source
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-07-14 02:03:29 +0200
committerGuillem Jover <guillem@debian.org>2017-08-26 10:59:37 +0200
commit99b3e1c276af88327b5f9423cfdf75afead28018 (patch)
treeae1d78ece29d6182e963fadcbd888492d058ea53 /scripts/Dpkg/Source
parent3f2687270a406347a14463a5e3031d214827bf56 (diff)
downloaddpkg-99b3e1c276af88327b5f9423cfdf75afead28018.tar.gz
perl: Use -> operator for function variables
Diffstat (limited to 'scripts/Dpkg/Source')
-rw-r--r--scripts/Dpkg/Source/Patch.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Dpkg/Source/Patch.pm b/scripts/Dpkg/Source/Patch.pm
index 22e9d213d..e5ad5424b 100644
--- a/scripts/Dpkg/Source/Patch.pm
+++ b/scripts/Dpkg/Source/Patch.pm
@@ -113,7 +113,7 @@ sub add_diff_file {
while (<$diffgen>) {
if (m/^(?:binary|[^-+\@ ].*\bdiffer\b)/i) {
$binary = 1;
- &$handle_binary($self, $old, $new, %opts);
+ $handle_binary->($self, $old, $new, %opts);
last;
} elsif (m/^[-+\@ ]/) {
$difflinefound++;
@@ -162,7 +162,7 @@ sub add_diff_directory {
my %files_in_new;
my $scan_new = sub {
my $fn = (length > length($new)) ? substr($_, length($new) + 1) : '.';
- return if &$diff_ignore($fn);
+ return if $diff_ignore->($fn);
$files_in_new{$fn} = 1;
lstat("$new/$fn") or syserr(g_('cannot stat file %s'), "$new/$fn");
my $mode = S_IMODE((lstat(_))[2]);
@@ -222,7 +222,7 @@ sub add_diff_directory {
};
my $scan_old = sub {
my $fn = (length > length($old)) ? substr($_, length($old) + 1) : '.';
- return if &$diff_ignore($fn);
+ return if $diff_ignore->($fn);
return if $files_in_new{$fn};
lstat("$old/$fn") or syserr(g_('cannot stat file %s'), "$old/$fn");
if (-f _) {