[lintian] 01/01: Use enclosing-if so that we capture $1 correctly.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 7ca695b5a8aeb98b7c5ad622601ce034e0557ff9
Author: Chris Lamb <lamby@debian.org>
Date: Thu Oct 26 07:57:46 2017 +0100
Use enclosing-if so that we capture $1 correctly.
---
checks/control-file.pm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/checks/control-file.pm b/checks/control-file.pm
index 7c6ea82..3a27e96 100644
--- a/checks/control-file.pm
+++ b/checks/control-file.pm
@@ -101,8 +101,9 @@ sub run {
if ($field eq 'xc-package-type') {
tag 'xc-package-type-in-debian-control', "line $.";
}
- tag 'debian-control-has-empty-field', "$1 (line $.)"
- if (/^(\S+):$/);
+ if (/^(\S+):$/) {
+ tag 'debian-control-has-empty-field', "$1 (line $.)"
+ }
unless (/^\S+: \S/ || /^\S+:$/) {
tag 'debian-control-has-unusual-field-spacing', "line $.";
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: