[lintian] 01/01: c/scripts.pm: Remove trailing ":" in tag output
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 135b54a22b5f9a6324811e8b6a44873b35c2a2d2
Author: Niels Thykier <niels@thykier.net>
Date: Fri Jul 7 11:02:18 2017 +0000
c/scripts.pm: Remove trailing ":" in tag output
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/scripts.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/checks/scripts.pm b/checks/scripts.pm
index e310cc3..0e2a6a6 100644
--- a/checks/scripts.pm
+++ b/checks/scripts.pm
@@ -631,8 +631,10 @@ sub run {
if (/\#DEBHELPER\#/) {
tag 'maintainer-script-has-unexpanded-debhelper-token', $file;
}
- if (/^# Automatically added by (\S*[^:\s]):?\s*$/) {
+ if (/^# Automatically added by (\S+)\s*$/) {
my $dh_cmd = $1;
+ # dh_python puts a trailing ":", remove that.
+ $dh_cmd =~ s/:++$//g;
tag 'debhelper-autoscript-in-maintainer-scripts', $dh_cmd
if not $dh_cmd_substs{$dh_cmd}++;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: