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

[lintian] 02/02: Do not emit package-does-not-install-examples if we don't have any binary packages in our laboratory. (Closes: #889591)



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

lamby pushed a commit to branch master
in repository lintian.

commit b2f5a40f1b8a548409a1597ecc61b5f8eab5d27f
Author: Chris Lamb <lamby@debian.org>
Date:   Sun Feb 4 22:45:55 2018 +0000

    Do not emit package-does-not-install-examples if we don't have any binary packages in our laboratory. (Closes: #889591)
---
 checks/cruft.pm  | 2 +-
 debian/changelog | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/checks/cruft.pm b/checks/cruft.pm
index 2a12c8f..e7b610c 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -1560,7 +1560,7 @@ sub _license_check {
 sub _ships_examples {
     my ($group) = @_;
     my @procs = $group->get_processables('binary');
-    return if not @procs;
+    return 1 if not @procs;
     foreach my $binpkg (@procs) {
         my $name = $binpkg->pkg_name;
         my @files = $binpkg->info->sorted_index;
diff --git a/debian/changelog b/debian/changelog
index dde7387..9d67431 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ lintian (2.5.74) UNRELEASED; urgency=medium
     + [BR] Check for wasm files.  (Closes: #889102)
     + [CL] Factor out call to _ships_examples to avoid excessive looping
       over $sorted_index.
+    + [CL] Do not emit package-does-not-install-examples if we don't have
+      any binary packages in our laboratory.  (Closes: #889591)
   * checks/fields.pm:
     + [CL] Avoid false positives when checking binary packages depending on
       toolchain packages by ignoring packages starting with "dh-" or ending

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


Reply to: