[lintian] 01/01: Only use capturing parens if we plan to use the captured value.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 62e440705cbf9c621b82e55312e22d4ae59da43f
Author: Chris Lamb <lamby@debian.org>
Date: Wed Jul 26 08:35:09 2017 +0100
Only use capturing parens if we plan to use the captured value.
---
checks/changes-file.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/changes-file.pm b/checks/changes-file.pm
index 521d467..d1579aa 100644
--- a/checks/changes-file.pm
+++ b/checks/changes-file.pm
@@ -199,7 +199,7 @@ sub run {
if ( $has_signing_key
&& $file =~ m/\.orig(-[A-Za-z\d-]+)?\.tar\./
&& $file !~ m/\.asc$/
- && $info->field('version') !~ m/(dfsg|debian|ds)/) {
+ && $info->field('version') !~ m/(?:dfsg|debian|ds)/) {
next if exists $files->{"$file.asc"};
tag 'orig-tarball-missing-upstream-signature', $file;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: