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

[lintian] 01/04: Check for source format 1.0 files that ship upstream signatures as this is not supported in stretch. (Closes: #823190)



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

lamby pushed a commit to branch master
in repository lintian.

commit 2f1efb44994b066c22a985c09a853fc9583aacf8
Author: Chris Lamb <lamby@debian.org>
Date:   Mon Jan 29 16:20:07 2018 +0000

    Check for source format 1.0 files that ship upstream signatures as this is not supported in stretch. (Closes: #823190)
---
 checks/changes-file.desc | 10 ++++++++++
 checks/changes-file.pm   |  5 +++++
 debian/changelog         |  3 +++
 3 files changed, 18 insertions(+)

diff --git a/checks/changes-file.desc b/checks/changes-file.desc
index 27fbf60..b7a11e6 100644
--- a/checks/changes-file.desc
+++ b/checks/changes-file.desc
@@ -199,3 +199,13 @@ Info: The packaging includes an upstream signing key but the corresponding
  .
  Support for signatures was added to <tt>pristine-tar</tt> in version 1.41
  and support in <tt>git-buildpackage</tt> is being tracked in #872864.
+
+Tag: source-format-1.0-with-upstream-signature
+Severity: normal
+Certainty: certain
+Info: The packaging includes an upstream signature but the package uses
+ source format "1.0".
+ .
+ Whilst these have been supported for extraction and building since dpkg
+ 1.18.5, this means they are unsupported in stretch.
+Ref: dpkg-source(1), #823190
diff --git a/checks/changes-file.pm b/checks/changes-file.pm
index d8254a9..74f99ba 100644
--- a/checks/changes-file.pm
+++ b/checks/changes-file.pm
@@ -23,6 +23,8 @@ use strict;
 use warnings;
 use autodie;
 
+use List::Moreutils qw(any);
+
 use Lintian::Tags qw(tag);
 use Lintian::Check qw(check_maintainer);
 use Lintian::Data;
@@ -186,6 +188,9 @@ sub run {
                 last;
             }
         }
+        tag 'source-format-1.0-with-upstream-signature'
+          if $src->info->field('format', '1.0') eq '1.0'
+          and any { m/\.asc$/ } %{$info->files};
     }
 
     my $files = $info->files;
diff --git a/debian/changelog b/debian/changelog
index e9c825c..fdd2b49 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,9 @@ lintian (2.5.73) UNRELEASED; urgency=medium
     + [CL] Improve the description-synopsis-might-not-be-phrased-properly
       tag also detect multiple sentences and improve the tag description.
       (Closes: #778427)
+  * checks/changes-file.{desc.pm}:
+    + [CL] Check for source format 1.0 files that ship upstream signatures
+      as this is not supported in stretch.  (Closes: #823190)
   * checks/fields.{desc,pm}:
     + [CL] Add a pedantic warning for co-maintained packages that are not
       managed in a revision control system.  (Closes: #884497)

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


Reply to: