Package: devscripts
Version: 2.16.4
Severity: normal
Tags: patch

Dear Maintainer,

some upstreams (like sks) ship their tarballs as foo-1.1.5.tgz

@ARCHIVE_EXT@ fails to locate this tarball.

The attached patch should address this concern.

    --dkg

-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
Not present

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing'), (200, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages devscripts depends on:
ii  dpkg-dev     1.18.4
ii  libc6        2.22-7
ii  perl         5.22.1-10
pn  python3:any  <none>

Versions of packages devscripts recommends:
ii  apt                         1.2.11
ii  at                          3.1.18-2
ii  curl                        7.47.0-1
ii  dctrl-tools                 2.24-2
ii  debian-keyring              2016.04.22
ii  dput-ng [dput]              1.10
ii  dupload                     2.7.0
pn  equivs                      <none>
ii  fakeroot                    1.20.2-1
ii  file                        1:5.25-2
ii  gnupg                       2.1.11-7+exp1
ii  libdistro-info-perl         0.14
ii  libencode-locale-perl       1.05-1
ii  liblwp-protocol-https-perl  6.06-2
pn  libsoap-lite-perl           <none>
ii  liburi-perl                 1.71-1
ii  libwww-perl                 6.15-1
ii  lintian                     2.5.44
ii  man-db                      2.7.5-1
ii  patch                       2.7.5-1
ii  patchutils                  0.3.4-1
ii  python3-debian              0.1.27
ii  python3-magic               1:5.25-2
ii  sensible-utils              0.0.9
ii  strace                      4.10-3
ii  unzip                       6.0-20
ii  wdiff                       1.2.2-1+b1
ii  wget                        1.17.1-1+b1
ii  xz-utils                    5.1.1alpha+20120614-2.1

Versions of packages devscripts suggests:
ii  build-essential              11.7
pn  cvs-buildpackage             <none>
ii  devscripts-el                35.12
ii  diffoscope                   52
pn  dose-extra                   <none>
pn  gnuplot                      <none>
ii  gpgv                         2.1.11-7+exp1
pn  libauthen-sasl-perl          <none>
pn  libfile-desktopentry-perl    <none>
ii  libnet-smtp-ssl-perl         1.03-1
pn  libterm-size-perl            <none>
ii  libtimedate-perl             2.3000-2
pn  libyaml-syck-perl            <none>
ii  mailutils [mailx]            1:2.99.99-1
ii  mozilla-devscripts           0.45.1
pn  mutt                         <none>
ii  openssh-client [ssh-client]  1:7.2p2-5
ii  s-nail [mailx]               14.8.8-1
ii  svn-buildpackage             0.8.5+nmu1
ii  w3m                          0.5.3-27

-- debconf-show failed
>From 8039b887e7eb4ed03ce4f12cdee9f69fe89abaee Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <d...@fifthhorseman.net>
Date: Fri, 6 May 2016 15:14:11 -0400
Subject: [PATCH] include tgz in @ARCHIVE_EXT@

---
 scripts/uscan.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index e105a68..dab1947 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -262,7 +262,7 @@ This is substituted by the legal upstream version regex (capturing).
 
 This is substituted by the typical archive file extension regex (non-capturing).
 
-  (?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)
+  (?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip|tgz)
 
 =item B<@SIGNATURE_EXT@>
 
@@ -4159,7 +4159,7 @@ sub process_watchfile ($$$$)
 
 	# Handle @PACKAGE@ @ANY_VERSION@ @ARCHIVE_EXT@ substitutions
 	my $any_version = '[-_]?(\d[\-+\.:\~\da-zA-Z]*)';
-	my $archive_ext = '(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip)';
+	my $archive_ext = '(?i)\.(?:tar\.xz|tar\.bz2|tar\.gz|zip|tgz)';
 	my $signature_ext = $archive_ext . '\.(?:asc|pgp|gpg|sig)';
 	s/\@PACKAGE\@/$package/g;
 	s/\@ANY_VERSION\@/$any_version/g;
-- 
2.8.1

Reply via email to