summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Source/Package/V3/Quilt.pm
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-09-30 21:25:40 +0200
committerGuillem Jover <guillem@debian.org>2014-10-06 02:08:03 +0200
commit4502f420bd22eab1634d5a9c710c79d58e13e76e (patch)
tree7a52377a8f7579b25f97f62ba1e62c8634a9e1b9 /scripts/Dpkg/Source/Package/V3/Quilt.pm
parent386e46306f1f6dbb84296f9be1379de10b1cc535 (diff)
downloaddpkg-4502f420bd22eab1634d5a9c710c79d58e13e76e.tar.gz
scripts: Unpack arguments instead of accessing @_ directly
Addresses Subroutines::RequireArgUnpacking. Warned-by: perlcritic
Diffstat (limited to 'scripts/Dpkg/Source/Package/V3/Quilt.pm')
-rw-r--r--scripts/Dpkg/Source/Package/V3/Quilt.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/Dpkg/Source/Package/V3/Quilt.pm b/scripts/Dpkg/Source/Package/V3/Quilt.pm
index 12bafa03d..39f04f0cb 100644
--- a/scripts/Dpkg/Source/Package/V3/Quilt.pm
+++ b/scripts/Dpkg/Source/Package/V3/Quilt.pm
@@ -167,9 +167,11 @@ sub prepare_build {
# on debian/patches/series symlinks and d/p/.dpkg-source-applied
# stamp file created by ourselves
my $func = sub {
- return 1 if $_[0] eq 'debian/patches/series' and -l $_[0];
- return 1 if $_[0] =~ /^\.pc(\/|$)/;
- return 1 if $_[0] =~ /$self->{options}{diff_ignore_regex}/;
+ my $pathname = shift;
+
+ return 1 if $pathname eq 'debian/patches/series' and -l $pathname;
+ return 1 if $pathname =~ /^\.pc(\/|$)/;
+ return 1 if $pathname =~ /$self->{options}{diff_ignore_regex}/;
return 0;
};
$self->{diff_options}{diff_ignore_func} = $func;