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

[lintian] 01/01: checks/patch-systems.pm: Check basename for README or README.patches for subdirs.



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

lamby pushed a commit to branch master
in repository lintian.

commit 869ffa875c700e324f2b256ba403a14506efb0ad
Author: Chris Lamb <lamby@debian.org>
Date:   Mon Jan 22 19:58:26 2018 +1100

    checks/patch-systems.pm: Check basename for README or README.patches for subdirs.
---
 checks/patch-systems.pm                                             | 6 ++----
 .../patch-systems-quilt-general/debian/debian/patches/subdir/README | 1 +
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/checks/patch-systems.pm b/checks/patch-systems.pm
index 557e0b1..fb2e629 100644
--- a/checks/patch-systems.pm
+++ b/checks/patch-systems.pm
@@ -48,10 +48,7 @@ sub run {
     return if not $droot;
     my $dpdir = $droot->resolve_path('patches');
     my $patch_series;
-    my %known_files = (
-        'README' => 1,
-        'README.patches' => 1,
-    );
+    my %known_files;
 
     # Find debian/patches/series, assuming debian/patches is a (symlink to a)
     # dir.  There are cases, where it is a file (ctwm: #778556)
@@ -243,6 +240,7 @@ sub run {
         }
 
         foreach my $file ($dpdir->children('breadth-first')) {
+            next if $file->basename =~ /^README(\.patches)?$/;
             # Use path relative to debian/patches for "subdir/foo"
             my $name = substr($file, length $dpdir);
             tag 'patch-file-present-but-not-mentioned-in-series', $name
diff --git a/t/tests/patch-systems-quilt-general/debian/debian/patches/subdir/README b/t/tests/patch-systems-quilt-general/debian/debian/patches/subdir/README
new file mode 100644
index 0000000..843d249
--- /dev/null
+++ b/t/tests/patch-systems-quilt-general/debian/debian/patches/subdir/README
@@ -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: