[lintian] 02/02: Check all subdirectories under /usr/share/doc/foo to test whether we ship example files, not just /usr/share/doc/foo/examples/.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 9027b8319fb4635355abda605eb1fe929e982f2a
Author: Chris Lamb <lamby@debian.org>
Date: Tue Mar 6 22:15:26 2018 -0800
Check all subdirectories under /usr/share/doc/foo to test whether we ship example files, not just /usr/share/doc/foo/examples/.
---
checks/cruft.pm | 2 +-
debian/changelog | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/checks/cruft.pm b/checks/cruft.pm
index db21095..5a7ef79 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -1575,7 +1575,7 @@ sub _ships_examples {
# If we have an -examples package, assume we ship examples.
return 1 if $name =~ m{-examples$};
my @files = $binpkg->info->sorted_index;
- return 1 if any { m{^usr/share/doc/$name/examples/$} } @files;
+ return 1 if any { m{^usr/share/doc/$name/(.+/)?examples/$} } @files;
}
return;
}
diff --git a/debian/changelog b/debian/changelog
index a50b77e..774d88c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,9 @@ lintian (2.5.79) UNRELEASED; urgency=medium
XXX: generate tag summary
+ * checks/cruft.pm:
+ + [CL] Check all subdirectories under /usr/share/doc/foo to test
+ whether we ship example files, not just /usr/share/doc/foo/examples/.
* data/fields/obsolete-packages:
+ [PW] Add exim and apache, replaced by exim4 and apache2
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: