From: Guillem Jover Date: Sun, 17 Jan 2016 01:08:12 +0000 (+0100) Subject: Add support for detached upstream signatures X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=84f230b6cfb4b3eb1ef5fbe672e121b1a8e7aabb;p=dak.git Add support for detached upstream signatures Upstream tarballs usually come with detached signatures, which would be useful to have in the source package, as an additional check that could be performed to verify its integrity and provenance. dpkg-source supports this since 1.17.20. Closes: #759401 --- diff --git a/daklib/utils.py b/daklib/utils.py index 9d45cdc8..5ac015cd 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -316,8 +316,10 @@ def check_dsc_files(dsc_filename, dsc, dsc_files): (r'tar.gz', ('native_tar_gz', 'native_tar')), (r'debian\.tar\.(gz|bz2|xz)', ('debian_tar',)), (r'orig\.tar\.(gz|bz2|xz)', ('orig_tar',)), + (r'orig\.tar\.(gz|bz2|xz)\.asc', ('orig_tar_sig',)), (r'tar\.(gz|bz2|xz)', ('native_tar',)), (r'orig-.+\.tar\.(gz|bz2|xz)', ('more_orig_tar',)), + (r'orig-.+\.tar\.(gz|bz2|xz)\.asc', ('more_orig_tar_sig',)), ) for f in dsc_files: @@ -341,7 +343,7 @@ def check_dsc_files(dsc_filename, dsc, dsc_files): reject("%s: unexpected source file '%s'" % (dsc_filename, f)) # Check for multiple files - for file_type in ('orig_tar', 'native_tar', 'debian_tar', 'debian_diff'): + for file_type in ('orig_tar', 'orig_tar_sig', 'native_tar', 'debian_tar', 'debian_diff'): if has[file_type] > 1: rejmsg.append("%s: lists multiple %s" % (dsc_filename, file_type))