#929799 --download-current-version and --download-version does not work with uscan when using multiple tarballs #929799
- Package:
- devscripts
- Source:
- devscripts
- Description:
- scripts to make the life of a Debian Package maintainer easier
- Submitter:
- Pirate Praveen
- Date:
- 2026-10-23 19:19:02 UTC
- Severity:
- important
- Tags:
severity: important Repo to reproduce is https://salsa.debian.org/js-team/node-chokidar $ cat debian/watch version=4 opts=\ dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\ filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/chokidar-$1.tar.gz/ \ https://github.com/paulmillr/chokidar/tags .*/archive/v?([\d\.]+).tar.gz debian opts="searchmode=plain,pgpmode=none,component=upath" \ https://registry.npmjs.org/upath \ https://registry.npmjs.org/upath/-/upath-(1.[\d\.]*)@ARCHIVE_EXT@ ignore $ uscan --force-download --download-version 2.1.6 uscan: Newest version of node-chokidar on remote site is 2.1.6, specified download version is 2.1.6 Leaving ../node-chokidar_2.1.6.orig.tar.gz where it is. uscan warn: In debian/watch no matching hrefs for version 2.1.6 in watch line https://registry.npmjs.org/upath https://registry.npmjs.org/upath/-/upath-(1.[\d\.]*)(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|zip|tgz|tbz|txz)) ignore $ uscan --force-download --download-current-version uscan: Newest version of node-chokidar on remote site is 2.1.6, specified download version is 2.1.6 Leaving ../node-chokidar_2.1.6.orig.tar.gz where it is. uscan warn: In debian/watch no matching hrefs for version in watch line https://registry.npmjs.org/upath https://registry.npmjs.org/upath/-/upath-(1.[\d\.]*)(?i)(?:\.(?:tar\.xz|tar\.bz2|tar\.gz|zip|tgz|tbz|txz)) ignore
Hi, I'm unable to reproduce this issue, with and without ctype=nodejs
Building ompl, in salsa I got this error: https://salsa.debian.org/science-team/ompl/-/jobs/10528973 Checking it locally (just clone the repo) if I do: $ uscan --no-download --verbose; echo "Exit status: $?" I got a 0. No error but, $ uscan --download-current-version --no-download; echo "Exit status: $?" I got a 1. Asking AI (chatgpt) it proposes to patch this file: /usr/share/perl5/Devscripts/Uscan/WatchSource.pm with this: sub BUILD { my ($self, $args) = @_; if ($self->watch_version > 3) { $self->type($self->watchSource->{versionschema}); + $self->versionmode('ignore') + if ($self->watchSource->{versionschema} // '') eq 'ignore'; } return $self; } I have to admit that it works, but I don't know if it is valid or not. Best regards, Leopold