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

The debsign script fails to scp files which contain a colon (":") in their names. This is unfortunate because the colon is a valid character in the version number of Debian packages.

Please, find attached to this bug report a simple patch that fixes the problem when uploading a .changes file. The change has been made in function maybesign_changes and it works for me. Similar changes may be done in functions dosigning, maybesign_dsc, and maybesign_buildinfo, but I did not test them.


Rafael Laboissière

-- Package-specific info:

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

--- ~/.devscripts --- USCAN_VERBOSE=yes DEBSIGN_KEYID=0x83785C90

-- System Information: Debian Release: buster/sid APT prefers testing APT policy: (650, 'testing'), (600, 'unstable'), (550, 'experimental'), (550, 'stable'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), 
LANGUAGE=en_US.utf8 (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 ii libc6 2.25-3 ii libfile-homedir-perl 1.002-1 ii perl 5.26.1-3 ii python3 3.6.4-1 ii sensible-utils 0.0.11

Versions of packages devscripts recommends: ii apt 1.6~alpha7 ii at 3.1.20-3.1 ii curl 7.57.0-1 ii dctrl-tools 2.24-2+b1 ii debian-keyring 2017.11.24 ii dput 1.0.1 pn equivs <none> ii fakeroot 1.22-2 ii file 1:5.32-1 ii gnupg 2.2.4-1 ii gnupg2 2.2.4-1 ii libdistro-info-perl 0.17 ii libdpkg-perl ii libencode-locale-perl 1.05-1 ii libgit-wrapper-perl 0.047-1 ii liblist-compare-perl 0.53-1 ii liblwp-protocol-https-perl 6.07-2 ii libsoap-lite-perl 1.22-1 ii liburi-perl 1.72-2 ii libwww-perl 6.29-1 ii licensecheck 3.0.31-2 ii lintian 2.5.65 ii man-db ii patch 2.7.5-1+b2 ii patchutils 0.3.4-2 ii python3-apt 1.4.0~beta3+b1 ii python3-debian 0.1.31 ii python3-magic 1:5.32-1 ii python3-requests 2.18.4-1 ii python3-unidiff 0.5.4-1 ii python3-xdg 0.25-4 ii strace 4.19-1 ii unzip 6.0-21 ii wdiff 1.2.2-2 ii wget 1.19.3-2 ii xz-utils 5.2.2-1.3

Versions of packages devscripts suggests: pn adequate <none> pn autopkgtest <none> pn bls-standalone <none> ii bsd-mailx [mailx] 8.1.2-0.20160123cvs-4 ii build-essential 12.4 pn check-all-the-things <none> pn cvs-buildpackage <none> ii devscripts-el 36.3+nmu1 pn diffoscope <none> pn disorderfs <none> pn dose-extra <none> pn duck <none> pn faketime <none> pn gnuplot <none> ii gpgv 2.2.4-1 pn how-can-i-help <none> ii libauthen-sasl-perl 2.1600-1 ii libfile-desktopentry-perl 0.22-1 pn libnet-smtps-perl <none> pn libterm-size-perl <none> ii libtimedate-perl 2.3000-2 pn libyaml-syck-perl <none> pn mozilla-devscripts <none> ii mutt 1.9.2-1 ii openssh-client [ssh-client] 1:7.6p1-2 pn piuparts <none> pn postgresql-client <none> ii quilt 0.63-8.1 pn ratt <none> pn reprotest <none> pn svn-buildpackage <none> ii w3m 0.5.3-35

-- no debconf information
--- /usr/bin/debsign	2018-02-12 08:54:15.703216235 +0100
+++ /usr/bin/debsign-new	2018-02-12 08:54:06.271145788 +0100
@@ -579,7 +579,7 @@
     if [ -n "$remotehost" ]
-	withecho scp "$changes" "$remotehost:$remotedir"
+	withecho scp "./$changes" "$remotehost:$remotedir"
devscripts-devel mailing list

Reply via email to