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

[lintian] 01/01: Don't check copyright_hints file for FIXME placeholders. (Closes: #872843)



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

lamby pushed a commit to branch master
in repository lintian.

commit 8d43c767b1a429ceb5c93ad89e29d7b542ce78e5
Author: Chris Lamb <lamby@debian.org>
Date:   Thu Aug 24 02:45:25 2017 +0100

    Don't check copyright_hints file for FIXME placeholders. (Closes: #872843)
---
 checks/cruft.pm                                                | 2 +-
 debian/changelog                                               | 2 ++
 t/tests/cruft-fixme-placeholders/debian/debian/copyright_hints | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/checks/cruft.pm b/checks/cruft.pm
index db829fd..0ab581f 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -707,7 +707,7 @@ sub find_cruft {
             }
         }
 
-        if (   $name =~ m{^debian/(README.source|copyright|rules|control)}
+        if (   $name =~ m{^debian/(README.source|copyright|rules|control)$}
             && $entry->is_file
             && $entry->is_open_ok) {
             my $fd = $entry->open;
diff --git a/debian/changelog b/debian/changelog
index ff83d34..3be7ef1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -27,6 +27,8 @@ lintian (2.5.53) UNRELEASED; urgency=medium
     + [CL] Apply patch from Alex Muntada (alexm) to use "substr" instead
       of "substring" in mentions-deprecated-usr-lib-perl5-directory's
       description.  (Closes: #871767)
+    + [CL] Don't check copyright_hints file for FIXME placeholders.
+      (Closes: #872843)
   * checks/debhelper.pm:
     + [CL] Prevent a false positive of
       missing-build-dependency-for-dh_-command that can be exposed by
diff --git a/t/tests/cruft-fixme-placeholders/debian/debian/copyright_hints b/t/tests/cruft-fixme-placeholders/debian/debian/copyright_hints
new file mode 100644
index 0000000..de8f916
--- /dev/null
+++ b/t/tests/cruft-fixme-placeholders/debian/debian/copyright_hints
@@ -0,0 +1 @@
+FIXME: This file should be ignored.

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


Reply to: