Bug#1111268: uscan: regression in v5 format: treats tag 0.1.0-alpha-4 as version 4 with template Github
Package: devscripts
Version: 2.25.18
Severity: important
X-Debbugs-Cc: debian-alpha@lists.debian.org
User: debian-alpha@lists.debian.org
Usertags: alpha
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
The package btm works fine with this watch file:
version=4
opts=\
downloadurlmangle=s!api.github.com/repos/[^/]+/[^/]+/\Kgit/!tarball/!g,\
searchmode=plain \
https://api.github.com/repos/ClementTsang/bottom/git/matching-refs/tags/ \
https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/@ANY_VERSION@
$ uscan
Newest version of btm on remote site is 0.11.1, local version is 0.10.2+20250107
=> Newer package available from:
=> https://api.github.com/repos/ClementTsang/bottom/tarball/refs/tags/0.11.1
uscan warn: Parameter ../0.11.1 does not have a file extension, guessed a tarball compressed with gzip.
uscan warn: Missing debian/source/format, switch compression to gzip
Leaving ../btm_0.11.1.orig.tar.gz where it is.
Upgrading to v5, however, bogusly treats tag 0.1.0-alpha-4 as newer
release 4:
version: 5
Template: Github
Owner: ClementTsang
Project: bottom
$ uscan
Newest version of btm on remote site is 4, local version is 0.10.2+20250107
=> Newer package available from:
=> https://api.github.com/repos/ClementTsang/bottom/tarball/refs/tags/0.1.0-alpha-4
uscan warn: Missing debian/source/format, switch compression to gzip
Successfully symlinked ../btm-4.tar.gz to ../btm_4.orig.tar.gz.
Explicitly adding Matching-Pattern as I assumed would be already a
necessary part of the used template makes it behave as expected:
version: 5
Template: Github
Owner: ClementTsang
Project: bottom
Matching-Pattern: https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/@ANY_VERSION@
$ uscan
Newest version of btm on remote site is 0.11.1, local version is 0.10.2+20250107
=> Newer package available from:
=> https://api.github.com/repos/ClementTsang/bottom/tarball/refs/tags/0.11.1
uscan warn: Missing debian/source/format, switch compression to gzip
Successfully symlinked ../btm-0.11.1.tar.gz to ../btm_0.11.1.orig.tar.gz.
I recommend to setup the template to behave the same as the pattern
documented as the equivalent non-template pattern for Github.
I recommend to document in uscan-templates manpage what exactly each
template does.
I recommend to expose in `uscan --report --verbose` the expansion of
templates into patterns.
- Jonas
- -- Package-specific info:
- --- /etc/devscripts.conf ---
Empty.
- --- ~/.devscripts ---
Not present
- -- System Information:
Debian Release: forky/sid
APT prefers buildd-unstable
APT policy: (500, 'buildd-unstable'), (500, 'unstable'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.22-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=da_DK.UTF-8, LC_CTYPE=da_DK.UTF-8 (charmap=UTF-8), LANGUAGE not set
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.22.21
ii file 1:5.46-5
ii gpg 2.4.8-2
ii gpg-agent 2.4.8-2
ii gpg-from-sq [gpg] 0.13.1-3
ii gpgv 2.4.8-2
ii gpgv-from-sq [gpgv] 0.13.1-3
ii libdpkg-perl 1.22.21
ii libfile-dirlist-perl 0.05-3
ii libfile-homedir-perl 1.006-2
ii libfile-touch-perl 0.12-2
ii libmoo-perl 2.005005-1
ii libwww-perl 6.78-1
ii patchutils 0.4.2-1
ii perl 5.40.1-6
ii python3 3.13.5-1
ii sensible-utils 0.0.25
ii wdiff 1.2.2-9
Versions of packages devscripts recommends:
ii apt 3.1.4
ii curl 8.15.0-1
ii dctrl-tools 2.24-3+b1
ii debian-keyring 2025.07.26
ii debian-tag2upload-keyring 1.1
ii dput 1.2.4
ii equivs 2.3.2
ii git-debpush 13.12
ii libdistro-info-perl 1.14
ii libencode-locale-perl 1.05-3
ii libgitlab-api-v4-perl 0.27-1
ii libio-string-perl 1.08-4
ii libjson-perl 4.10000-1
ii liblwp-protocol-https-perl 6.14-1
ii libsoap-lite-perl 1.27-3
ii libstring-shellquote-perl 1.04-3
ii liburi-perl 5.30-1
ii licensecheck 3.3.9-1
ii lintian 2.122.0
ii lzip 1.25-3
ii man-db 2.13.1-1
ii patch 2.8-2
ii pristine-tar 1.50+nmu2
ii python3-apt 3.0.0
ii python3-debian 1.0.1
ii python3-magic 2:0.4.27-3
ii python3-requests 2.32.3+dfsg-5
ii python3-unidiff 0.7.5-2
ii python3-xdg 0.28-2
ii strace 6.16+ds-2
ii unzip 6.0-29
ii wget 1.25.0-2
ii xz-utils 5.8.1-1
Versions of packages devscripts suggests:
pn adequate <none>
pn at <none>
pn autopkgtest <none>
pn bls-standalone <none>
pn bsd-mailx | mailx <none>
ii build-essential 12.12
pn check-all-the-things <none>
ii debhelper 13.25
pn diffoscope <none>
pn disorderfs <none>
pn docker.io <none>
ii dose-extra 7.0.0-6+b2
pn duck <none>
pn elpa-devscripts <none>
pn faketime <none>
pn gnuplot <none>
pn how-can-i-help <none>
ii libauthen-sasl-perl 2.1900-1
pn libdbd-pg-perl <none>
pn libmetacpan-client-perl <none>
pn libterm-size-perl <none>
ii libtimedate-perl 2.3300-2
ii libyaml-libyaml-perl 0.903.0+ds-1
ii mmdebstrap 1.5.7-3
pn mutt <none>
ii openssh-client [ssh-client] 1:10.0p1-8
pn piuparts <none>
pn postgresql-client <none>
pn pristine-lfs <none>
ii python3-debianbts 4.1.1
pn python3-pycurl <none>
ii quilt 0.68-1
pn ratt <none>
pn reprotest <none>
pn svn-buildpackage <none>
ii w3m 0.5.3+git20230121-2.1
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
wsG7BAEBCgBvBYJooFl3CRAsfDFGwaABIUcUAAAAAAAeACBzYWx0QG5vdGF0aW9u
cy5zZXF1b2lhLXBncC5vcmcS7ObxpHYhxldcBPHbxjhDgraUemsm+UXRj9n51LAb
DRYhBJ/j6cNmkaaf9TzGhCx8MUbBoAEhAADTpQ//Wbx3gvmCUKEOHeedVv3MIuzl
Wb+7nnIX2g81XXk1xBhr0+UFvMAIkpywXH+9TwNcmhManPr1W/iyQB9+/zUzd2KD
APC2ru7uwQpZR8Q55qLO7VA4OwPhnJA3D6uTwJMs/ZUGHgXnPq3j1sMNOfX0dkWM
M/YHxxRLX3OIZvv/1AB+6Uvp1tJjQHxuH5fm2hY0PYxZ2ueYl1Z1G5MMIafGW0rK
6h+pORHusCvhoJQzHqdlb1hjdtOlqWF2lhYg27S0DJEjCnX/lvmOzEh3PGzKMcvm
9gUZZpGfqB2ur01/CVuNomdNk//tSd5fFOeIWRtXRW7mripl9HX4dlAM7nDFP+zy
73cJG56RtxDUagNIk6+JOVYU5a41aItqtYFggnT1aJTG73rZ8aBZBhysa5akU0rl
ql2xJzdychfp1EwU3qlg4gU/ZDJ4Jhx1fOZn60e8JLUy/6gqnzwLXYwAVs+Z6Dgp
7d6jXqZrC6E83hGrbud+olJnPYempPctYIHYLVnkkc2OygUFVkJP6mpogg3X7l4h
x/TMgLKqABrBTezkgWi+yCdqqxAKSx3qH3HyP8r8VjwI7c7KCqs3d7kSUxmK5sPx
7SsPDxNf4NnUEVFFXvFrNllzgfqIGgr6wMn6r63lYWm0WYa+beqsNtHZw+EZ0FRI
jkZuVQawakPqN7fdiKg=
=qh+N
-----END PGP SIGNATURE-----
Reply to: