#1138904 devscripts: uscan fails with --download-current-version but works with --download-debversion <current-version>

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Joachim Zobel
Date:
2026-06-05 16:31:02 UTC
Severity:
normal
#1138904#5
Date:
2026-06-05 16:26:42 UTC
From:
To:
Dear Maintainer,

I am using uscan only for reprorting on the QA page. The package is
libpicohttpparser. The watch file is
Template: Github
Owner: h2o
Project: picohttpparser
Version-Constraint: refs/tags/@ANY_VERSION@
Dversion-Mangle: auto
Repacksuffix: +ds
-----------------------------------------------------------

The current first  changelog line is
-----------------------------------------------------------
libpicohttpparser (1.2+ds-3) unstable; urgency=medium
-----------------------------------------------------------

With

uscan -vvv --download-current-version --no-download

i get a warning

uscan warn: In debian/watch no matching files for version
refs/tags/(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*)) in watch line
[Devscripts::Uscan::Modes::_xtp: 111]

at the end of the output. The point where things go wrong seems to be

uscan debug: $self->{'pgpmode'}=none, $self->{'pgpsigurlmangle'}=undef
uscan info: Last orig.tar.* tarball version (from debian/changelog):
refs/tags/(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))
uscan debug: safe_replace input="refs/tags/(?:[-_]?[Vv]?(\d[\-+\.:\~\da-
zA-Z]*))"
uscan debug: safe_replace with
regexp="(?:[\+~](debian|dfsg|ds|deb)(\.)?(\d+)?$)", replacement="", and
flags=""
uscan debug: After dversionmangle: refs/tags/(?:[-_]?[Vv]?(\d[\-+\.:\~\da-
zA-Z]*))
uscan info: Download the --download-current-version specified version:
refs/tags/(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))

If I compare this output with the output of

uscan -vvv --download-debversion 1.2+ds-3 --no-download

(which works) the above should contain

uscan debug: After dversionmangle: 1.2

Sincerely,
Joachim
--- /etc/devscripts.conf ---
Empty.
--- ~/.devscripts --- DEBSIGN_KEYID=DB3F996D35A1EE0DA3FCCFED12672035D0F1058A