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

[lintian] 01/02: Ignore files called "README" or "README.patches" when checking packages for patch-file-present-but-not-mentioned-in-series.



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

lamby pushed a commit to branch master
in repository lintian.

commit 4533a5092fe7b9b7e3f8bda2829995a6111906b9
Author: Chris Lamb <lamby@debian.org>
Date:   Mon Jan 22 15:32:24 2018 +1100

    Ignore files called "README" or "README.patches" when checking packages for patch-file-present-but-not-mentioned-in-series.
---
 checks/patch-systems.pm                                              | 5 ++++-
 debian/changelog                                                     | 3 +++
 t/tests/patch-systems-quilt-general/debian/debian/patches/README     | 1 +
 .../patch-systems-quilt-general/debian/debian/patches/README.patches | 1 +
 4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/checks/patch-systems.pm b/checks/patch-systems.pm
index 64d913c..6461a91 100644
--- a/checks/patch-systems.pm
+++ b/checks/patch-systems.pm
@@ -48,7 +48,10 @@ sub run {
     return if not $droot;
     my $dpdir = $droot->resolve_path('patches');
     my $patch_series;
-    my %known_files;
+    my %known_files = (
+        'README' => 1,
+        'README.patches' => 1,
+    );
 
     # Find debian/patches/series, assuming debian/patches is a (symlink to a)
     # dir.  There are cases, where it is a file (ctwm: #778556)
diff --git a/debian/changelog b/debian/changelog
index 02eff85..82be2de 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,9 @@ lintian (2.5.72) UNRELEASED; urgency=medium
     + [CL] Warn about packages that use about dh_systemd_enable or
       dh_systemd_start overrides whilst using debhelper compat level 11 as
       they are no longer being called.  (Closes: #887899)
+  * checks/patch-systems.{desc,pm}:
+    + [CL] Ignore files called "README" or "README.patches" when checking
+      packages for patch-file-present-but-not-mentioned-in-series.
 
  -- Chris Lamb <lamby@debian.org>  Sun, 21 Jan 2018 16:42:25 +1100
 
diff --git a/t/tests/patch-systems-quilt-general/debian/debian/patches/README b/t/tests/patch-systems-quilt-general/debian/debian/patches/README
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/tests/patch-systems-quilt-general/debian/debian/patches/README
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag
diff --git a/t/tests/patch-systems-quilt-general/debian/debian/patches/README.patches b/t/tests/patch-systems-quilt-general/debian/debian/patches/README.patches
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/tests/patch-systems-quilt-general/debian/debian/patches/README.patches
@@ -0,0 +1 @@
+false positive for patch-file-present-but-not-mentioned-in-series tag

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


Reply to: