[lintian] 01/01: Ignore "UNRELEASED" changelog entries as their timestamps are meaningful.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit d9b959aefa615c4f757674dea6c241f8dad31be3
Author: Chris Lamb <lamby@debian.org>
Date: Thu Jul 20 21:58:56 2017 +0100
Ignore "UNRELEASED" changelog entries as their timestamps are meaningful.
---
checks/copyright-file.pm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/checks/copyright-file.pm b/checks/copyright-file.pm
index aa284ee..c85eb82 100644
--- a/checks/copyright-file.pm
+++ b/checks/copyright-file.pm
@@ -61,9 +61,14 @@ sub run {
$found = 1;
}
+ # Extract the year from the most recent entry in debian/changelog. We do
+ # not use UNRELEASED entries as there is no guarantee that their timestamps
+ # are meaningful.
my $latest_year = 0;
my $changes = $info->changelog;
- if (defined $changes) {
+ if ( defined($changes)
+ && defined $info->field('distribution')
+ && $info->field('distribution') ne 'UNRELEASED') {
my ($entry) = $info->changelog->data;
$latest_year = (gmtime($entry->{Timestamp}))[5] + 1900;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: