[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: Include the offending URI in debian-watch-uses-insecure-uri output, not the line number.



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit 0d56807ea8017b603a8b1065d13e3e986c47f85a
Author: Chris Lamb <lamby@debian.org>
Date:   Fri Oct 13 17:16:25 2017 -0400

    Include the offending URI in debian-watch-uses-insecure-uri output, not the line number.
---
 checks/watch-file.pm | 4 ++--
 debian/changelog     | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/checks/watch-file.pm b/checks/watch-file.pm
index 5a8fb91..b3de51b 100644
--- a/checks/watch-file.pm
+++ b/checks/watch-file.pm
@@ -137,8 +137,8 @@ sub run {
                               /projects/.+/files}xsm
               ) {
                 tag 'debian-watch-file-should-use-sf-redirector', "line $.";
-            } elsif (m%(?:http|ftp):%) {
-                tag 'debian-watch-uses-insecure-uri',"line $.";
+            } elsif (m%(?:http|ftp):\S+%) {
+                tag 'debian-watch-uses-insecure-uri',$&;
             }
 
             # This bit is as-is from uscan.pl:
diff --git a/debian/changelog b/debian/changelog
index 2742bc9..3d9c26a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ lintian (2.5.56) UNRELEASED; urgency=medium
   * checks/debconf.desc:
     + [CL] Apply patch from Ville Skyttä <ville.skytta@iki.fi> to update
       the debconf-spec refs.  (Closes: #878449)
+  * checks/watch-file.pm:
+    + [CL] Include the offending URI in debian-watch-uses-insecure-uri
+      output, not the line number.
 
   * private/refresh-manual-refs:
     + [CL] Apply patch from Ville Skyttä <ville.skytta@iki.fi> to update

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: