[lintian] 02/04: c/copyright-file.pm: Check the distribution of the changelog entry, not the .changes file.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 496490ccec417d61ea9fb404b19a376ba803baeb
Author: Chris Lamb <lamby@debian.org>
Date: Fri Jul 21 09:06:25 2017 +0100
c/copyright-file.pm: Check the distribution of the changelog entry, not the .changes file.
---
checks/copyright-file.pm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/checks/copyright-file.pm b/checks/copyright-file.pm
index c85eb82..bafa4d9 100644
--- a/checks/copyright-file.pm
+++ b/checks/copyright-file.pm
@@ -66,11 +66,11 @@ sub run {
# are meaningful.
my $latest_year = 0;
my $changes = $info->changelog;
- if ( defined($changes)
- && defined $info->field('distribution')
- && $info->field('distribution') ne 'UNRELEASED') {
+ if (defined($changes)) {
my ($entry) = $info->changelog->data;
- $latest_year = (gmtime($entry->{Timestamp}))[5] + 1900;
+ if ($entry->{'Distribution'} ne 'UNRELEASED') {
+ $latest_year = (gmtime($entry->{Timestamp}))[5] + 1900;
+ }
}
if (my $index_info = $info->index("$path/copyright")) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: