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

[lintian] 02/02: Emit a warning if a package uses a deprecated FTP package upload location. (Closes: #892249)



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

lamby pushed a commit to branch master
in repository lintian.

commit 4b14bdcda77470a58bff415defd326e128d6d119
Author: Chris Lamb <lamby@debian.org>
Date:   Thu Mar 8 22:57:18 2018 -0800

    Emit a warning if a package uses a deprecated FTP package upload location. (Closes: #892249)
---
 checks/obsolete-sites.pm                       | 3 +++
 debian/changelog                               | 3 +++
 t/tests/obsolete-sites/debian/debian/copyright | 2 ++
 3 files changed, 8 insertions(+)

diff --git a/checks/obsolete-sites.pm b/checks/obsolete-sites.pm
index 2d408db..596d248 100644
--- a/checks/obsolete-sites.pm
+++ b/checks/obsolete-sites.pm
@@ -70,6 +70,9 @@ sub search_for_obsolete_sites {
                 tag 'obsolete-url-in-packaging', $file, $1;
             }
         }
+
+        tag 'obsolete-url-in-packaging', $file, $1
+          if $dcontents =~m{(ftp://(?:ftp|security)\.debian\.org)}i;
     }
 
     return;
diff --git a/debian/changelog b/debian/changelog
index 94ff865..919929e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,9 @@ lintian (2.5.79) UNRELEASED; urgency=medium
       mail-transport-agent dependency but do not specify default-mta and
       packages that do not specify default-mta first in their alternatives.
       Thanks to Paul Wise for the report.  (Closes: #892143)
+  * checks/obsolete-sites.pm:
+    + [CL] Emit a warning if a package uses a deprecated FTP package upload
+      location.  (Closes: #892249)
 
   * data/fields/obsolete-packages:
     + [PW] Add exim and apache, replaced by exim4 and apache2
diff --git a/t/tests/obsolete-sites/debian/debian/copyright b/t/tests/obsolete-sites/debian/debian/copyright
index 66230d4..f6b4aba 100644
--- a/t/tests/obsolete-sites/debian/debian/copyright
+++ b/t/tests/obsolete-sites/debian/debian/copyright
@@ -2,6 +2,8 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: Foo
 Upstream-Contact: J. Random Hacker <j.r.hacker@example.com>
 Source: https://foo.berlios.de/
+Positive: ftp://ftp.debian.org/pub/UploadQueue
+False-Positive: http://ftp.debian.org/
 
 Files: *
 Copyright: 2014, me

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


Reply to: