[lintian] 01/01: checks/standards-version.pm: Include the date the Standards-Version was actually released in the output of the ancient-standards-version and the out-of-date-standards-version tags.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 985f4d06680b5cbd8e529592de87f9216a9b7532
Author: Chris Lamb <lamby@debian.org>
Date: Sat Jan 13 15:41:44 2018 +0530
checks/standards-version.pm: Include the date the Standards-Version was actually released in the output of the ancient-standards-version and the out-of-date-standards-version tags.
---
checks/standards-version.pm | 2 ++
debian/changelog | 4 ++++
t/tests/generic-dh-make-2005/tags | 2 +-
t/tests/generic-dh-make-2008/tags | 2 +-
t/tests/legacy-binary/tags | 2 +-
t/tests/legacy-debconf/tags | 2 +-
t/tests/legacy-debug/tags | 2 +-
t/tests/legacy-etcfiles/tags | 2 +-
t/tests/legacy-fields/tags | 2 +-
t/tests/legacy-filenames/tags | 2 +-
t/tests/legacy-foo++/tags | 2 +-
t/tests/legacy-libbaz/tags | 2 +-
t/tests/legacy-maintainer-scripts/tags | 2 +-
t/tests/legacy-relations/tags | 2 +-
t/tests/legacy-scripts/tags | 2 +-
t/tests/standards-version-old/tags | 2 +-
16 files changed, 20 insertions(+), 14 deletions(-)
diff --git a/checks/standards-version.pm b/checks/standards-version.pm
index 05fcc3f..0dab5f4 100644
--- a/checks/standards-version.pm
+++ b/checks/standards-version.pm
@@ -147,6 +147,8 @@ sub run {
# version following it has been out for at least two years (so
# the current version is never obsolete).
my $rdate = $STANDARDS->value($stdver);
+ my $released = strftime('%Y-%m-%d', gmtime $rdate);
+ $tag = "$version (released $released) (current is $CURRENT)";
if ($rdate < $ANCIENT_DATE) {
tag 'ancient-standards-version', $tag;
} else {
diff --git a/debian/changelog b/debian/changelog
index 6b10764..b6bc59f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,10 @@ lintian (2.5.69) UNRELEASED; urgency=medium
* checks/source-copyright.{desc,pm}:
+ [CL] Warn about insecure "Format:" URIs that reference debian.org.
Based on a patch by Nicolas Braud-Santoni. (Closes: #886930)
+ * checks/standards-version.pm:
+ + [CL] Include the date the Standards-Version was actually released in
+ the output of the ancient-standards-version and the
+ out-of-date-standards-version tags.
* data/files/fnames:
+ [CL] Warn about packages that ship (eg.) test_foo.py files in the
diff --git a/t/tests/generic-dh-make-2005/tags b/t/tests/generic-dh-make-2005/tags
index 05e3ba3..e483ad1 100644
--- a/t/tests/generic-dh-make-2005/tags
+++ b/t/tests/generic-dh-make-2005/tags
@@ -4,7 +4,7 @@ E: generic-dh-make-2005: helper-templates-in-copyright
E: generic-dh-make-2005: section-is-dh_make-template
I: generic-dh-make-2005 source: debian-watch-file-is-missing
I: generic-dh-make-2005: extended-description-is-probably-too-short
-W: generic-dh-make-2005 source: ancient-standards-version 3.6.2 (current is CURRENT)
+W: generic-dh-make-2005 source: ancient-standards-version 3.6.2 (released 2005-06-17) (current is CURRENT)
W: generic-dh-make-2005 source: debian-rules-ignores-make-clean-error line 47
W: generic-dh-make-2005 source: debian-rules-missing-recommended-target build-arch
W: generic-dh-make-2005 source: debian-rules-missing-recommended-target build-indep
diff --git a/t/tests/generic-dh-make-2008/tags b/t/tests/generic-dh-make-2008/tags
index 20a56bb..00d025a 100644
--- a/t/tests/generic-dh-make-2008/tags
+++ b/t/tests/generic-dh-make-2008/tags
@@ -15,7 +15,7 @@ P: generic-dh-make-2008 source: file-contains-trailing-whitespace debian/rules (
P: generic-dh-make-2008 source: no-dep5-copyright
P: generic-dh-make-2008: copyright-with-old-dh-make-debian-copyright
P: generic-dh-make-2008: no-upstream-changelog
-W: generic-dh-make-2008 source: ancient-standards-version 3.7.3 (current is CURRENT)
+W: generic-dh-make-2008 source: ancient-standards-version 3.7.3 (released 2007-12-03) (current is CURRENT)
W: generic-dh-make-2008 source: bad-homepage <insert the upstream URL, if relevant>
W: generic-dh-make-2008 source: debian-rules-missing-recommended-target build-arch
W: generic-dh-make-2008 source: debian-rules-missing-recommended-target build-indep
diff --git a/t/tests/legacy-binary/tags b/t/tests/legacy-binary/tags
index 731069a..5f6ea11 100644
--- a/t/tests/legacy-binary/tags
+++ b/t/tests/legacy-binary/tags
@@ -59,7 +59,7 @@ I: binary: desktop-entry-lacks-icon-entry usr/share/applications/goodbye.desktop
I: binary: desktop-entry-lacks-keywords-entry usr/share/applications/goodbye.desktop
I: binary: desktop-entry-lacks-keywords-entry usr/share/applications/hello.desktop
I: binary: no-md5sums-control-file
-W: binary source: ancient-standards-version 3.2.1 (current is CURRENT)
+W: binary source: ancient-standards-version 3.2.1 (released 2000-08-24) (current is CURRENT)
W: binary source: debian-rules-ignores-make-clean-error line 14
W: binary source: debian-rules-missing-recommended-target build-indep
W: binary source: debian-rules-should-not-use-pwd line 9
diff --git a/t/tests/legacy-debconf/tags b/t/tests/legacy-debconf/tags
index 00ec375..ad9e6d6 100644
--- a/t/tests/legacy-debconf/tags
+++ b/t/tests/legacy-debconf/tags
@@ -31,7 +31,7 @@ I: debconf-test: unused-debconf-template debconf/testmulti-escape
I: debconf-test: unused-debconf-template debconf/testnote
I: debconf-test: unused-debconf-template debconf/teststring
I: debconf-test: unused-debconf-template debconf/translate
-W: debconf source: ancient-standards-version 3.7.2 (current is CURRENT)
+W: debconf source: ancient-standards-version 3.7.2 (released 2006-05-03) (current is CURRENT)
W: debconf source: debian-rules-calls-debhelper-in-odd-order dh_makeshlibs (line 56)
W: debconf source: debian-rules-calls-debhelper-in-odd-order dh_makeshlibs (line 60)
W: debconf source: debian-rules-sets-DH_COMPAT line 3
diff --git a/t/tests/legacy-debug/tags b/t/tests/legacy-debug/tags
index e98ce93..5950743 100644
--- a/t/tests/legacy-debug/tags
+++ b/t/tests/legacy-debug/tags
@@ -28,7 +28,7 @@ I: debug source: debian-control-has-obsolete-dbg-package hello-dbg
I: debug source: debian-control-has-obsolete-dbg-package hello-hello-dbg
I: debug source: debian-control-has-obsolete-dbg-package hi-dbg
I: debug source: debian-control-has-obsolete-dbg-package libhello0-dbg
-W: debug source: ancient-standards-version 3.7.0 (current is CURRENT)
+W: debug source: ancient-standards-version 3.7.0 (released 2006-04-26) (current is CURRENT)
W: debug source: changelog-should-not-mention-nmu
W: debug source: dbg-package-missing-depends hi-dbg
W: debug source: dbg-package-missing-depends libhello0-dbg
diff --git a/t/tests/legacy-etcfiles/tags b/t/tests/legacy-etcfiles/tags
index cf4c618..5e12100 100644
--- a/t/tests/legacy-etcfiles/tags
+++ b/t/tests/legacy-etcfiles/tags
@@ -9,7 +9,7 @@ E: etcfiles: md5sums-lists-nonexistent-file usr/bin/foo
E: etcfiles: no-copyright-file
E: etcfiles: non-etc-file-marked-as-conffile var/lib/foo
E: only-etcfiles: extended-description-is-empty
-W: etcfiles source: ancient-standards-version 3.5.0 (current is CURRENT)
+W: etcfiles source: ancient-standards-version 3.5.0 (released 2001-01-29) (current is CURRENT)
W: etcfiles: file-missing-in-md5sums etc/improper-link
W: etcfiles: file-missing-in-md5sums usr/share/doc/etcfiles/changelog
W: etcfiles: package-contains-hardlink etc/improper -> etc/improper-link
diff --git a/t/tests/legacy-fields/tags b/t/tests/legacy-fields/tags
index fd9942f..81cae10 100644
--- a/t/tests/legacy-fields/tags
+++ b/t/tests/legacy-fields/tags
@@ -7,7 +7,7 @@ E: fields source: package-uses-debhelper-but-lacks-build-depends
E: fields: debian-changelog-file-missing-or-wrong-name
E: fields: depends-on-python-minimal depends
E: fields: no-copyright-file
-W: fields source: ancient-standards-version 3.9.2 (current is CURRENT)
+W: fields source: ancient-standards-version 3.9.2 (released 2011-04-07) (current is CURRENT)
W: fields source: changelog-should-mention-nmu
W: fields source: debhelper-but-no-misc-depends another-version
W: fields source: debhelper-but-no-misc-depends fields
diff --git a/t/tests/legacy-filenames/tags b/t/tests/legacy-filenames/tags
index c842a88..566c392 100644
--- a/t/tests/legacy-filenames/tags
+++ b/t/tests/legacy-filenames/tags
@@ -51,7 +51,7 @@ I: filenames: using-first-person-in-description line 1: I
I: more-filename-games: no-md5sums-control-file
W: filename-games: binary-without-manpage usr/bin/test-game
W: filename-games: no-priority-field
-W: filenames source: ancient-standards-version 3.1.1 (current is CURRENT)
+W: filenames source: ancient-standards-version 3.1.1 (released 1999-11-16) (current is CURRENT)
W: filenames source: diff-contains-arch-control-dir .arch-ids
W: filenames source: diff-contains-arch-control-dir {arch}
W: filenames source: diff-contains-arch-inventory-file data/.arch-inventory
diff --git a/t/tests/legacy-foo++/tags b/t/tests/legacy-foo++/tags
index f6a490e..047c9ab 100644
--- a/t/tests/legacy-foo++/tags
+++ b/t/tests/legacy-foo++/tags
@@ -18,7 +18,7 @@ E: foo++: wrong-debian-qa-address-set-as-maintainer Lintian Maintainer <debian-q
I: foo++ source: debian-watch-uses-insecure-uri http://domain.tld/file-(.*)\.tar\.gz
I: foo++ source: duplicate-short-description foo++ foo++-helper
I: foo++: no-md5sums-control-file
-W: foo++ source: ancient-standards-version 3.1.1 (current is CURRENT)
+W: foo++ source: ancient-standards-version 3.1.1 (released 1999-11-16) (current is CURRENT)
W: foo++ source: debian-watch-file-in-native-package
W: foo++ source: debian-watch-file-unknown-version 0
W: foo++ source: dm-upload-allowed-is-obsolete
diff --git a/t/tests/legacy-libbaz/tags b/t/tests/legacy-libbaz/tags
index 85ea81d..b9a003c 100644
--- a/t/tests/legacy-libbaz/tags
+++ b/t/tests/legacy-libbaz/tags
@@ -41,7 +41,7 @@ I: libbaz2-dev: wrong-section-according-to-package-name libbaz2-dev => libdevel
I: libbaz2: no-md5sums-control-file
I: libbaz2: no-symbols-control-file usr/lib/libbaz2.so.1.0.3b
N: 4 tags overridden (4 warnings)
-W: libbaz source: ancient-standards-version 3.2.1 (current is CURRENT)
+W: libbaz source: ancient-standards-version 3.2.1 (released 2000-08-24) (current is CURRENT)
W: libbaz source: binaries-have-file-conflict libbaz1 libbaz1-dev usr/lib/ma-dir/perl/version/auto/Foo/Foo.so
W: libbaz source: binaries-have-file-conflict libbaz1 libbaz2-dev usr/lib/libbaz2.a
W: libbaz source: changelog-should-mention-nmu
diff --git a/t/tests/legacy-maintainer-scripts/tags b/t/tests/legacy-maintainer-scripts/tags
index b3c067e..9869a0b 100644
--- a/t/tests/legacy-maintainer-scripts/tags
+++ b/t/tests/legacy-maintainer-scripts/tags
@@ -40,7 +40,7 @@ I: maintainer-scripts source: debian-rules-missing-good-practice-target-dfsg get
I: maintainer-scripts source: debian-watch-uses-insecure-uri http://domain.tld/foo-(.+)\.tar\.gz
I: maintainer-scripts: no-md5sums-control-file
I: maintainer-scripts: output-of-updaterc.d-not-redirected-to-dev-null bar postrm
-W: maintainer-scripts source: ancient-standards-version 3.1.1 (current is CURRENT)
+W: maintainer-scripts source: ancient-standards-version 3.1.1 (released 1999-11-16) (current is CURRENT)
W: maintainer-scripts source: changelog-should-mention-qa
W: maintainer-scripts source: debhelper-but-no-misc-depends maintainer-scripts
W: maintainer-scripts source: debian-watch-file-in-native-package
diff --git a/t/tests/legacy-relations/tags b/t/tests/legacy-relations/tags
index 1d7da96..246620f 100644
--- a/t/tests/legacy-relations/tags
+++ b/t/tests/legacy-relations/tags
@@ -31,7 +31,7 @@ I: relations-multiple-libs: description-synopsis-might-not-be-phrased-properly
I: relations-multiple-libs: ored-depends-on-obsolete-package suggests: gs
I: relations: conflicts-with-version foobar (<< 5+5)
I: relations: ored-depends-on-obsolete-package recommends: gs-aladdin
-W: relations source: ancient-standards-version 3.7.3 (current is CURRENT)
+W: relations source: ancient-standards-version 3.7.3 (released 2007-12-03) (current is CURRENT)
W: relations source: bad-homepage lintian.debian.org
W: relations source: build-depends-on-1-revision build-depends-indep: libfoo (>= 1.2-1)
W: relations source: package-depends-on-itself relations depends
diff --git a/t/tests/legacy-scripts/tags b/t/tests/legacy-scripts/tags
index 7f849b7..cd2b16b 100644
--- a/t/tests/legacy-scripts/tags
+++ b/t/tests/legacy-scripts/tags
@@ -39,7 +39,7 @@ I: scripts: no-md5sums-control-file
I: scripts: script-in-usr-share-doc usr/share/doc/scripts/py2.Xfoo
I: scripts: script-in-usr-share-doc usr/share/doc/scripts/py2foo
I: scripts: script-in-usr-share-doc usr/share/doc/scripts/rubyfoo
-W: scripts source: ancient-standards-version 3.2.1 (current is CURRENT)
+W: scripts source: ancient-standards-version 3.2.1 (released 2000-08-24) (current is CURRENT)
W: scripts source: binary-arch-rules-but-pkg-is-arch-indep
W: scripts source: changelog-should-mention-nmu
W: scripts source: debhelper-but-no-misc-depends scripts
diff --git a/t/tests/standards-version-old/tags b/t/tests/standards-version-old/tags
index 1973c9a..bf86249 100644
--- a/t/tests/standards-version-old/tags
+++ b/t/tests/standards-version-old/tags
@@ -1 +1 @@
-I: standards-version-old source: out-of-date-standards-version 3.9.6 (current is CURRENT)
+I: standards-version-old source: out-of-date-standards-version 3.9.6 (released 2014-09-17) (current is CURRENT)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: