Control: tags -1 + patch The attached patch implements these changes.
- Josh Triplett
>From 55a882e6f878e1071e29d91a8f5a52eeb84d3884 Mon Sep 17 00:00:00 2001 From: Josh Triplett <j...@joshtriplett.org> Date: Wed, 23 Nov 2016 03:48:50 -0800 Subject: [PATCH] Exclude files under /usr/share/cargo/registry/ from a few checks That directory contains unmodified upstream sources. (Closes: #845201) --- checks/files.pm | 5 ++++- checks/scripts.pm | 1 + debian/changelog | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/checks/files.pm b/checks/files.pm index b19b3bf..50b6381 100644 --- a/checks/files.pm +++ b/checks/files.pm @@ -1218,6 +1218,8 @@ sub run { and not $fname =~ m,^usr/share/man/(?:[^/]+/)?man\d/,o # liblicense (again) and not $fname =~ m,^usr/share/pyshared-data/,o + # Rust crate unmodified upstream sources + and not $fname =~ m,^usr/share/cargo/registry/,o # Some GNOME/GTK software uses these to show the "license # header". and not $fname =~ m, @@ -1365,7 +1367,8 @@ sub run { } # ---------------- vcs control files - if ($fname =~ m,$VCS_FILES_OR_ALL,) { + if ( $fname =~ m,$VCS_FILES_OR_ALL, + and $fname !~ m,^usr/share/cargo/registry/,) { tag 'package-contains-vcs-control-file', $file; } diff --git a/checks/scripts.pm b/checks/scripts.pm index f40fddd..bf1700f 100644 --- a/checks/scripts.pm +++ b/checks/scripts.pm @@ -311,6 +311,7 @@ sub run { or $filename =~ m,^usr/(?:lib|share)/.*\.pm, or $filename =~ m,^usr/(?:lib|share)/.*\.py, or $filename =~ m,^usr/(?:lib|share)/ruby/.*\.rb, + or $filename =~ m,^usr/share/cargo/registry/, or $filename =~ m,^usr/share/debconf/confmodule(?:\.sh)?$, or $filename =~ m,\.in$, or $filename =~ m,\.erb$, diff --git a/debian/changelog b/debian/changelog index eeeaef0..1c87d05 100644 --- a/debian/changelog +++ b/debian/changelog @@ -20,6 +20,11 @@ lintian (2.5.50) UNRELEASED; urgency=medium * data/files/privacy-breaker-websites: + [BR] Detect more logos. + * checks/{files,scripts}.pm: + + [JT] Exclude files under /usr/share/cargo/registry/ from a few checks, + as that directory contains unmodified upstream sources. + (Closes: #845201) + -- Niels Thykier <ni...@thykier.net> Wed, 26 Oct 2016 20:42:18 +0000 lintian (2.5.49) unstable; urgency=medium -- 2.10.2