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

Bug#650959: lintian: false-negative empty-binary-package for packages with /u/s/doc/$pkg symlink



Package: lintian
Version: 2.5.4
Severity: minor
Tags: patch

Lintian considers all packages containing /usr/share/doc/$pkgname symlink as non-empty. The attached patch fixes this bug:

$ lintian -T empty-binary-package python3-yaml-dbg_3.10-1_i386.deb
W: python3-yaml-dbg: empty-binary-package

--
Jakub Wilk
diff --git a/checks/files b/checks/files
--- a/checks/files
+++ b/checks/files
@@ -244,6 +244,8 @@
                 $is_empty = 0;
                 last;
             }
+            # Skip /usr/share/doc/$pkg symlinks.
+            next if $file eq "usr/share/doc/$pkg";
             # For files directly in /usr/share/doc/$pkg, if the file isn't one
             # of the uninteresting ones, the package isn't empty.
             unless ($STANDARD_FILES->known(basename($file))) {

Reply to: