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

[lintian] 01/01: Prevent false positives in copyright-year-in-future when matching the Tcl license (eg. postgresql-10). (Closes: #876360)



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

lamby pushed a commit to branch master
in repository lintian.

commit 094958154d4bd7e61358bb9beeca0269aff1334f
Author: Chris Lamb <lamby@debian.org>
Date:   Thu Sep 21 17:08:56 2017 +0100

    Prevent false positives in copyright-year-in-future when matching the Tcl license (eg. postgresql-10). (Closes: #876360)
---
 checks/copyright-file.pm                                      | 2 ++
 debian/changelog                                              | 2 ++
 t/tests/copyright-file-year-in-future/debian/debian/copyright | 1 +
 3 files changed, 5 insertions(+)

diff --git a/checks/copyright-file.pm b/checks/copyright-file.pm
index b4e3234..3f3feb3 100644
--- a/checks/copyright-file.pm
+++ b/checks/copyright-file.pm
@@ -358,6 +358,8 @@ qr/GNU (?:Lesser|Library) General Public License|(?-i:\bLGPL\b)/i
                     next if $line =~ m/Original Author/;
                     # "Sun Microsystems, 4150 Network Drive, CA"
                     next if $year == 4150;
+                    # "Clause 252.227-7013 (c) (1) of DFARs" in Tcl license
+                    next if $year == 7013;
                     tag 'copyright-year-in-future',
                       "$year > $latest_year (line $linenum, column $column)";
                 }
diff --git a/debian/changelog b/debian/changelog
index c065f37..8edd4d1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ lintian (2.5.54) UNRELEASED; urgency=medium
   * checks/copyright-file.pm:
     + [CL] Prevent false positives in copyright-year-in-future when
       matching URLs.
+    + [CL] Prevent false positives in copyright-year-in-future when
+      matching the Tcl license (eg. postgresql-10).  (Closes: #876360)
   * checks/files.desc:
     + [CL] Correct grammar and punctuation in description of
       node-package-install-in-nodejs-rootdir.
diff --git a/t/tests/copyright-file-year-in-future/debian/debian/copyright b/t/tests/copyright-file-year-in-future/debian/debian/copyright
index 20d9497..af94099 100644
--- a/t/tests/copyright-file-year-in-future/debian/debian/copyright
+++ b/t/tests/copyright-file-year-in-future/debian/debian/copyright
@@ -16,6 +16,7 @@ Copyright:
  2000 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A.
  2112 D. Original Author.
  2000 Lintian Maintainers <http://example.com/4200/LICENSE>
+ 2000 Clause 252.227-7013 (c) (1) of DFARs.
 License: MIT
  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions

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


Reply to: