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

[lintian] 02/02: Add a classification tag for the .deb data tarball compression format. (Closes: #738442)



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

lamby pushed a commit to branch master
in repository lintian.

commit 8dc0a3237cdb6646a84b19f3c6be84103400b0bb
Author: Chris Lamb <lamby@debian.org>
Date:   Wed Feb 7 21:42:20 2018 +0000

    Add a classification tag for the .deb data tarball compression format. (Closes: #738442)
---
 checks/deb-format.desc | 5 +++++
 checks/deb-format.pm   | 2 ++
 debian/changelog       | 3 +++
 3 files changed, 10 insertions(+)

diff --git a/checks/deb-format.desc b/checks/deb-format.desc
index 5983f00..cbee42c 100644
--- a/checks/deb-format.desc
+++ b/checks/deb-format.desc
@@ -89,3 +89,8 @@ Info: The data portion of this binary package uses a non-compressed
  .
  Except if data is non-compressible, use gzip for
  maximum compatibility and speed, and xz for maximum compression ratio.
+
+Tag: data-tarball-compression-format
+Severity: classification
+Certainty: certain
+Info: This is the compressor format used for the <tt>data.tar</tt> tarball.
diff --git a/checks/deb-format.pm b/checks/deb-format.pm
index f1e2c5a..2dea157 100644
--- a/checks/deb-format.pm
+++ b/checks/deb-format.pm
@@ -162,6 +162,8 @@ sub run {
             } elsif ($data_member eq 'data.tar') {
                 tag 'uses-no-compression-for-data-tarball';
             }
+            tag 'data-tarball-compression-format',
+              $data_member =~ s/^data\.tar\.?//r || '(none)';
         }
     } else {
         # unpack will probably fail so we'll never get here, but may as well be
diff --git a/debian/changelog b/debian/changelog
index 7964015..863d2e0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,9 @@ lintian (2.5.74) UNRELEASED; urgency=medium
       give more debhelper advice.
     + [CL] Assume that if a source package generates a binary ending in
       "-examples" then it does ship examples.
+  * checks/deb-format.{desc,pm}:
+    + [CL] Add a classification tag for the .deb data tarball compression
+      format.  (Closes: #738442)
   * 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: