[lintian] 02/04: c/cpy-file: Avoid wrapping regex in a sub
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit cc960b6f4a9c838393803155d3ee0d553ed4e824
Author: Niels Thykier <niels@thykier.net>
Date: Fri Feb 26 19:51:30 2016 +0000
c/cpy-file: Avoid wrapping regex in a sub
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/copyright-file.pm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/checks/copyright-file.pm b/checks/copyright-file.pm
index 05720c9..fbd93e9 100644
--- a/checks/copyright-file.pm
+++ b/checks/copyright-file.pm
@@ -420,7 +420,6 @@ sub check_names_texts {
return $action->($_);
};
};
- $name_check = $make_check->($name_check);
$text_check = $make_check->($text_check);
my $file = \$_;
@@ -436,7 +435,7 @@ sub check_names_texts {
next if ($license_text||'') =~ /^[\s\r\n]*\z/;
die 'MATCH'
- if $name_check->(\$license_name)
+ if $license_name =~ $name_check
&& $text_check->(\$license_text);
}
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: