[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 URLs.



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

lamby pushed a commit to branch master
in repository lintian.

commit 2937f851a370b1b70e5a8b2937b6d6a1c27c8057
Author: Chris Lamb <lamby@debian.org>
Date:   Wed Sep 20 22:09:32 2017 +0100

    Prevent false positives in copyright-year-in-future when matching URLs.
---
 checks/copyright-file.pm                                      | 2 +-
 debian/changelog                                              | 4 ++++
 t/tests/copyright-file-year-in-future/debian/debian/copyright | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/checks/copyright-file.pm b/checks/copyright-file.pm
index 05e6f93..b4e3234 100644
--- a/checks/copyright-file.pm
+++ b/checks/copyright-file.pm
@@ -349,7 +349,7 @@ qr/GNU (?:Lesser|Library) General Public License|(?-i:\bLGPL\b)/i
             my $linenum = 1;
             foreach my $line (split /^/m) {
                 while (
-                    $line =~ /(?<![a-z][\s\-])\b(?<![:\.\@])
+                    $line =~ /(?<![a-z][\s\-\/])\b(?<![:\/\.\@])
                     (\d{4}) \b(?!\.)/xig
                   ) {
                     my $year = $1;
diff --git a/debian/changelog b/debian/changelog
index 0fad8e4..6bf9c00 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,10 @@ lintian (2.5.54) UNRELEASED; urgency=medium
 
   "XXX: generate tag summary"
 
+  * checks/copyright-file.pm:
+    + [CL] Prevent false positives in copyright-year-in-future when
+      matching URLs.
+
  -- Chris Lamb <lamby@debian.org>  Wed, 20 Sep 2017 18:24:43 +0100
 
 lintian (2.5.53) unstable; urgency=medium
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 58b56d3..20d9497 100644
--- a/t/tests/copyright-file-year-in-future/debian/debian/copyright
+++ b/t/tests/copyright-file-year-in-future/debian/debian/copyright
@@ -15,6 +15,7 @@ Copyright:
  2000 Lintian Maintainers, Immensee, CH-2205, Switzerland.
  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>
 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: