[lintian] 01/01: Avoid misleading tag descriptions when emitting valid timewarp-standards-version warnings if the date parts are identical (ie. "2017-11-30 < 2017-11-30"). Thanks to Andrea Bolognani eof@kiyuko.org> for the report. (Closes: #884785)
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 5be4539f330d5b2402727064925bfb21eec77e02
Author: Chris Lamb <lamby@debian.org>
Date: Tue Dec 19 20:45:46 2017 +0000
Avoid misleading tag descriptions when emitting valid timewarp-standards-version warnings if the date parts are identical (ie. "2017-11-30 < 2017-11-30"). Thanks to Andrea Bolognani eof@kiyuko.org> for the report. (Closes: #884785)
---
checks/standards-version.pm | 6 ++++++
debian/changelog | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/checks/standards-version.pm b/checks/standards-version.pm
index bf4fda7..05fcc3f 100644
--- a/checks/standards-version.pm
+++ b/checks/standards-version.pm
@@ -112,6 +112,12 @@ sub run {
my $package = strftime('%Y-%m-%d', gmtime $pkgdate);
my $release = strftime('%Y-%m-%d', gmtime $STANDARDS->value($stdver));
+ if ($package eq $release) {
+ # Increase the precision if required
+ my $fmt = '%Y-%m-%d %H:%M:%S UTC';
+ $package = strftime($fmt, gmtime $pkgdate);
+ $release = strftime($fmt, gmtime $STANDARDS->value($stdver));
+ }
tag 'timewarp-standards-version', "($package < $release)";
}
diff --git a/debian/changelog b/debian/changelog
index c58b157..7ba9163 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,11 @@ lintian (2.5.66) UNRELEASED; urgency=medium
+ [CL] Warn about Python 2.x packages using ${python3:Depends} and
Python 3.x packages using ${python:Depends}. Thanks to Mattia
Rizzolo for the idea. (Closes: #884676)
+ * checks/standards-version.pm:
+ + [CL] Avoid misleading tag descriptions when emitting valid
+ timewarp-standards-version warnings if the date parts are identical
+ (ie. "2017-11-30 < 2017-11-30"). Thanks to Andrea Bolognani
+ eof@kiyuko.org> for the report. (Closes: #884785)
* data/debhelper/compat-level:
+ [MR] Bump the experimental debhelper compat level to 12.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: