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

lamby pushed a commit to branch master
in repository lintian.

commit b2aae6091ee9b0a5971dc927a732c2b692233ee2
Author: Chris Lamb <la...@debian.org>
Date:   Sun Feb 4 09:57:42 2018 +0000

    Ignore packages ending with "-source" too.
---
 checks/fields.pm                                        |  1 +
 debian/changelog                                        |  5 +++--
 t/tests/fields-depends-general/debian/debian/control.in | 12 ++++++++++++
 3 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/checks/fields.pm b/checks/fields.pm
index 2ced6ff..ce545a2 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -907,6 +907,7 @@ sub run {
                       "$field: $part_d_orig"
                       if $KNOWN_TOOLCHAIN->known($d_pkg)
                       and not $pkg =~ m/^dh-/
+                      and not $pkg =~ m/-(source|src)$/
                       and not $DH_ADDONS_VALUES{$pkg};
 
                     # default-jdk-doc must depend on openjdk-X-doc (or
diff --git a/debian/changelog b/debian/changelog
index e18bb23..6f3d160 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,8 +6,9 @@ lintian (2.5.74) UNRELEASED; urgency=medium
     + [BR] Check for wasm files.  (Closes: #889102)
   * checks/fields.pm:
     + [CL] Avoid false positives when checking binary packages depending on
-      toolchain packages by ignoring packages starting with "dh-". Thanks
-      to Josh Triplett for the report.  (Closes: #889486)
+      toolchain packages by ignoring packages starting with "dh-" or ending
+      with "-source". Thanks to Josh Triplett for the report.
+      (Closes: #889486)
   * checks/patch-systems.pm:
     + [CL] Avoid emitting "Can't use an undefined value as an ARRAY
       reference" warnings when debian/patches is a file, not a directory.
diff --git a/t/tests/fields-depends-general/debian/debian/control.in 
b/t/tests/fields-depends-general/debian/debian/control.in
index 5b610cc..7f3ef33 100644
--- a/t/tests/fields-depends-general/debian/debian/control.in
+++ b/t/tests/fields-depends-general/debian/debian/control.in
@@ -67,3 +67,15 @@ Description: {$description} - Fake Debhelper package
  .
  The fake Debhelper package to test false-positives in
  binary-package-depends-on-toolchain-package.
+
+Package: {$source}-source
+Architecture: {$architecture}
+Depends: $\{shlibs:Depends\}, $\{misc:Depends\}, debhelper
+Description: {$description} - Fake DKMS-like package
+ This is a test package designed to exercise some feature or tag of
+ Lintian.  It is part of the Lintian test suite and may do very odd
+ things.  It should not be installed like a regular package.  It may
+ be an empty package.
+ .
+ The fake DKMS-like package to test false-positives in
+ binary-package-depends-on-toolchain-package.

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

Reply via email to