[lintian] 01/01: Ensure that bugs-field-does-not-refer-to-debian-infrastructure can be overridden by not emitting them for -dbgsym packages. Thanks to Thorsten Glaser for the report. (Closes: #886426)
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 5f25c74cbebfa429837e6078278fab9f95ac73d6
Author: Chris Lamb <lamby@debian.org>
Date: Sat Jan 6 10:30:49 2018 +0000
Ensure that bugs-field-does-not-refer-to-debian-infrastructure can be overridden by not emitting them for -dbgsym packages. Thanks to Thorsten Glaser for the report. (Closes: #886426)
---
checks/fields.pm | 2 +-
debian/changelog | 3 +++
.../debian/debian/control.in | 12 ++++++++++++
.../tags | 1 +
4 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/checks/fields.pm b/checks/fields.pm
index 01d120c..fa0d697 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -1238,7 +1238,7 @@ sub run {
tag 'bugs-field-does-not-refer-to-debian-infrastructure', $bugs,
"(line $.)"
- unless $bugs =~ m,\.debian\.org,;
+ unless $bugs =~ m,\.debian\.org, or $pkg =~ /[-]dbgsym$/;
}
#----- Python-Version
diff --git a/debian/changelog b/debian/changelog
index 616a79e..b1317e1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,9 @@ lintian (2.5.68) UNRELEASED; urgency=medium
upcoming salsa.debian.org migration. (Closes: #885974)
+ [CL] Include the offending "Bugs" field value in the output of the
bugs-field-does-not-refer-to-debian-infrastructure tag.
+ + [CL] Ensure that bugs-field-does-not-refer-to-debian-infrastructure
+ can be overridden by not emitting them for -dbgsym packages. Thanks
+ to Thorsten Glaser for the report. (Closes: #886426)
* checks/huge-usr-share.pm:
+ [CL] Bump arch-dep-package-has-big-usr-share thresholds; they were
last set in 2004. (Closes: #648755)
diff --git a/t/tests/fields-bugs-field-does-not-refer-to-debian-infrastructure/debian/debian/control.in b/t/tests/fields-bugs-field-does-not-refer-to-debian-infrastructure/debian/debian/control.in
index 5255130..872db86 100644
--- a/t/tests/fields-bugs-field-does-not-refer-to-debian-infrastructure/debian/debian/control.in
+++ b/t/tests/fields-bugs-field-does-not-refer-to-debian-infrastructure/debian/debian/control.in
@@ -16,3 +16,15 @@ Description: {$description}
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.
+
+Package: {$source}-dbgsym
+Architecture: {$architecture}
+Section: debug
+Depends: $\{misc:Depends\}
+Description: {$description} (fake dbgsym 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. s
+ .
+ This is fake dbgsym package.
diff --git a/t/tests/fields-bugs-field-does-not-refer-to-debian-infrastructure/tags b/t/tests/fields-bugs-field-does-not-refer-to-debian-infrastructure/tags
index 8cef195..6ed99a3 100644
--- a/t/tests/fields-bugs-field-does-not-refer-to-debian-infrastructure/tags
+++ b/t/tests/fields-bugs-field-does-not-refer-to-debian-infrastructure/tags
@@ -1 +1,2 @@
+E: fields-bugs-field-does-not-refer-to-debian-infrastructure source: debian-control-has-dbgsym-package fields-bugs-field-does-not-refer-to-debian-infrastructure-dbgsym
W: fields-bugs-field-does-not-refer-to-debian-infrastructure: bugs-field-does-not-refer-to-debian-infrastructure https://upstream.org/ (line 11)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: