Package: devscripts Version: 2.23.4+deb12u1 Severity: normal File: /usr/bin/uscan
Dear Maintainer,
Given:
$ head debian/*
==> debian/changelog <==
snappy-tools (0-1) unstable; urgency=low
==> debian/watch <==
version=4
opts="pgpsigurlmangle=s:$:.asc:" \
https://git.sr.ht/~nabijaczleweli/snappy-tools/refs
.*/([0-9][0-9a-zA-Z]*)@ARCHIVE_EXT@
(and an equivalent but fully-populated debian/,
with a fully-correct d/changelog and populated d/upstream/signing-key.asc)
uscan gives me
$ uscan --download-current-version --force-download -v
uscan info: uscan (version 2.23.4+deb12u1) See uscan(1) for help
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan: warning: debian/changelog(l1): found end of file where expected
start of change data
uscan info: package="snappy-tools" version="0-1" (as seen in debian/changelog)
uscan info: package="snappy-tools" version="0" (no epoch/revision)
uscan info: ./debian/changelog sets package="snappy-tools" version="0"
uscan info: Process watch file at: debian/watch
package = snappy-tools
version = 0
pkg_dir = .
uscan info: opts: pgpsigurlmangle=s:$:.asc:
uscan info: line: https://git.sr.ht/~nabijaczleweli/snappy-tools/refs
.*/([0-9][0-9a-zA-Z]*)(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Parsing pgpsigurlmangle=s:$:.asc:
uscan info: line: https://git.sr.ht/~nabijaczleweli/snappy-tools/refs
.*/([0-9][0-9a-zA-Z]*)(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Last orig.tar.* tarball version (from debian/changelog): 0
uscan info: Download the --download-current-version specified version: 0
uscan info: Requesting URL:
https://git.sr.ht/~nabijaczleweli/snappy-tools/refs
uscan info: Matching pattern:
(?:(?:https://git.sr.ht)?\/\~nabijaczleweli\/snappy\-tools\/)?.*/([0-9][0-9a-zA-Z]*)(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
uscan info: Found the following matching hrefs on the web page (newest first):
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0.tar.gz (0)
index=0-1 matched with the download version
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0.tar.gz (0)
index=0-1 matched with the download version
uscan info: Scan finished
I use the exact same d/watch for urlview (and other packages),
and it works there.
Actually, having just made a fake version 0a, I see that it /did/
download that.
With --d-c-v I still saw
uscan info: Found the following matching hrefs on the web page (newest first):
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz (0a)
index=0a-1
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz (0a)
index=0a-1
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0.tar.gz (0)
index=0-1 matched with the download version
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0.tar.gz (0)
index=0-1 matched with the download version
uscan info: Scan finished
but without I got
uscan info: Found the following matching hrefs on the web page (newest first):
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz (0a)
index=0a-1
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz (0a)
index=0a-1
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0.tar.gz (0)
index=0-1
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0.tar.gz (0)
index=0-1
uscan info: Looking at $base =
https://git.sr.ht/~nabijaczleweli/snappy-tools/refs with
$filepattern =
.*/([0-9][0-9a-zA-Z]*)(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
found
$newfile =
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz
$newversion = 0a
$lastversion = 0
uscan info: Matching target for downloadurlmangle:
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz
uscan info: Upstream URL(+tag) to download is identified as
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz
uscan info: Filename (filenamemangled) for downloaded file: 0a.tar.gz
Newest version of snappy-tools on remote site is 0a, local version is 0
=> Newer package available from:
=> https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz
uscan info: Downloading upstream package: 0a.tar.gz
uscan info: Requesting URL:
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz
uscan info: Successfully downloaded upstream package: 0a.tar.gz
uscan info: Downloading OpenPGP signature from:
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz.asc
(pgpsigurlmangled)
as 0a.tar.gz.asc
uscan info: Requesting URL:
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz.asc
uscan warn: In directory ., downloading
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz.asc
failed: 404 NOT FOUND
uscan die: FAIL Checking OpenPGP signature (no keyring).
(correct, I didn't sign it).
With sed -i s/0/0a/ debian/changelog and --d-c-v I see
uscan info: Found the following matching hrefs on the web page (newest first):
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz (0a)
index=0a-1 matched with the download version
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz (0a)
index=0a-1 matched with the download version
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0.tar.gz (0)
index=0-1
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0.tar.gz (0)
index=0-1
uscan info: Looking at $base =
https://git.sr.ht/~nabijaczleweli/snappy-tools/refs with
$filepattern =
.*/([0-9][0-9a-zA-Z]*)(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|tar\.zstd?|zip|tgz|tbz|txz))
found
$newfile =
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz
$newversion = 0a
$lastversion = 0a
uscan info: Matching target for downloadurlmangle:
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz
uscan info: Upstream URL(+tag) to download is identified as
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz
uscan info: Filename (filenamemangled) for downloaded file: 0a.tar.gz
Newest version of snappy-tools on remote site is 0a, specified download
version is 0a
uscan info: Not downloading, using existing file: 0a.tar.gz
uscan info: Downloading OpenPGP signature from:
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz.asc
(pgpsigurlmangled)
as 0a.tar.gz.asc
uscan info: Requesting URL:
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz.asc
uscan warn: In directory ., downloading
https://git.sr.ht/~nabijaczleweli/snappy-tools/archive/0a.tar.gz.asc
failed: 404 NOT FOUND
uscan die: FAIL Checking OpenPGP signature (no keyring).
so idk.
Does uscan simply refuse to download version 0?
Is this a bizarre perlism (version "0" => if version => false)?
Best,
наб
-- Package-specific info:
--- /etc/devscripts.conf ---
Empty.
--- ~/.devscripts ---
Not present
-- System Information:
Debian Release: 12.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-9-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND,
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages devscripts depends on:
ii dpkg-dev 1.21.22
ii fakeroot 1.31-1.2
ii file 1:5.44-3
ii gnupg 2.2.40-1.1
ii gpgv 2.2.40-1.1
ii libc6 2.36-9+deb12u3
ii libfile-dirlist-perl 0.05-3
ii libfile-homedir-perl 1.006-2
ii libfile-touch-perl 0.12-2
ii libfile-which-perl 1.27-2
ii libipc-run-perl 20220807.0-1
ii libmoo-perl 2.005005-1
ii libwww-perl 6.68-1
ii patchutils 0.4.2-1
ii perl 5.36.0-7+deb12u1
ii python3 3.11.2-1+b1
ii sensible-utils 0.0.17+nmu1
ii wdiff 1.2.2-5
Versions of packages devscripts recommends:
ii apt 2.6.1
ii curl 7.88.1-10+deb12u5
ii dctrl-tools 2.24-3+b1
pn debian-keyring <none>
ii dput 1.1.3
ii equivs 2.3.1
ii libdistro-info-perl 1.5+deb12u1
ii libdpkg-perl 1.21.22
ii libencode-locale-perl 1.05-3
pn libgit-wrapper-perl <none>
pn libgitlab-api-v4-perl <none>
ii liblist-compare-perl 0.55-2
ii liblwp-protocol-https-perl 6.10-1
ii libsoap-lite-perl 1.27-3
pn libstring-shellquote-perl <none>
ii libtry-tiny-perl 0.31-2
ii liburi-perl 5.17-1
pn licensecheck <none>
ii lintian 2.116.3
ii man-db 2.11.2-2
ii patch 2.7.6-7.1
ii pristine-tar 1.50
ii python3-apt 2.6.0
ii python3-debian 0.1.49
pn python3-magic <none>
ii python3-requests 2.28.1+dfsg-1
pn python3-unidiff <none>
ii python3-xdg 0.28-2
ii strace 6.1-0.1
ii unzip 6.0-28
ii wget 1.21.3-1+b2
ii xz-utils 5.4.1-0.2
Versions of packages devscripts suggests:
pn adequate <none>
pn at <none>
pn autopkgtest <none>
pn bls-standalone <none>
ii build-essential 12.9
pn check-all-the-things <none>
pn cvs-buildpackage <none>
ii debhelper 13.11.4
pn diffoscope <none>
pn disorderfs <none>
pn dose-extra <none>
pn duck <none>
pn elpa-devscripts <none>
pn faketime <none>
ii gnuplot-nox [gnuplot] 5.4.4+dfsg1-2+b2
pn how-can-i-help <none>
ii libauthen-sasl-perl 2.1600-3
pn libdbd-pg-perl <none>
pn libfile-desktopentry-perl <none>
pn libterm-size-perl <none>
ii libtimedate-perl 2.3300-2
pn libyaml-syck-perl <none>
ii mailutils [mailx] 1:3.15-4
pn mmdebstrap <none>
pn mozilla-devscripts <none>
pn mutt <none>
ii openssh-client [ssh-client] 1:9.2p1-2+deb12u2
pn piuparts <none>
pn postgresql-client <none>
pn pristine-lfs <none>
ii quilt 0.67+really0.66-1
pn ratt <none>
pn reprotest <none>
pn svn-buildpackage <none>
ii w3m 0.5.3+git20230121-2
-- no debconf information
signature.asc
Description: PGP signature

