I have encountered this issue in "wasix-libc" package, where
"uscan --download-current-version" failed to match upstream
version "2025.12.24.1" despite having that very release listed
among Github tags:

```
$ uscan --destdir=.. --repack   --download-current-version -v
uscan info: Scan watch files in .
uscan info: Check debian/watch and debian/changelog in .
uscan info: package="wasix-libc" version="2025.12.24.1+ds-1" (as seen in 
debian/changelog)
uscan info: package="wasix-libc" version="2025.12.24.1+ds" (no epoch/
revision)
uscan info: ./debian/changelog sets package="wasix-libc" 
version="2025.12.24.1+ds"
uscan info: Process watch file at: debian/watch
    package = wasix-libc
    version = 2025.12.24.1+ds
    pkg_dir = .
uscan info: debian/watch isn't formatted in version 5, trying version 4
uscan info: File debian/watch converted into << ==EOF==
Version: 5

# https://salsa.debian.org/snippets/95
# https://wiki.debian.org/debian/watch
# uscan(1) configuration file.
Source: https://api.github.com/repos/wasix-org/wasix-libc/releases?
per_page=99
Matching-Pattern: https://api.github.com/repos/[^/]+/[^/]+/tarball/v?
([\d.\-]+)
Compression: xz
Dversionmangle: s{[+~](dfsg|ds)\d*}{}
Filenamemangle: s%v?@ANY_VERSION@%@PACKAGE@-$1.tar.xz%
Pgpmode: none
Repack: yes
Repacksuffix: +ds
Searchmode: plain
Update-Script: uupdate
Uversionmangle: s{[\-]}{.}g

==EOF==
uscan info: Reset watch_version to 4 because default value may change in 
version 5
uscan info: Parsing compression: xz
uscan info: Parsing dversionmangle: s{[+~](dfsg|ds)\d*}{}
uscan info: Parsing filenamemangle: s%v?(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-
Z]*))%wasix-libc-$1.tar.xz%
uscan info: Parsing pgpmode: none
uscan info: Parsing repack: yes
uscan info: Parsing repacksuffix: +ds
uscan info: Parsing searchmode: plain
uscan info: Parsing uversionmangle: s{[\-]}{.}g
uscan info: Last orig.tar.* tarball version (from debian/changelog): 
2025.12.24.1+ds
uscan info: Download the --download-current-version specified version: 
2025.12.24.1
uscan info: Requesting URL:
   https://api.github.com/repos/wasix-org/wasix-libc/releases?
per_page=99
uscan info: Found the following matching files on the web page (newest 
first):
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2025-12-24.1 (2025.12.24.1) index=2025.12.24.1-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2025-12-22.1 (2025.12.22.1) index=2025.12.22.1-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2025-12-10.1 (2025.12.10.1) index=2025.12.10.1-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2025-11-06.1 (2025.11.06.1) index=2025.11.06.1-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2025-09-02.1 (2025.09.02.1) index=2025.09.02.1-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2025-08-14.1 (2025.08.14.1) index=2025.08.14.1-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2025-07-15.2 (2025.07.15.2) index=2025.07.15.2-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2025-07-07.1 (2025.07.07.1) index=2025.07.07.1-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2025-06-12.1 (2025.06.12.1) index=2025.06.12.1-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2025-06-11.1 (2025.06.11.1) index=2025.06.11.1-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2024-07-08.1 (2024.07.08.1) index=2024.07.08.1-0
   https://api.github.com/repos/wasix-org/wasix-libc/tarball/
v2024-06-20.1 (2024.06.20.1) index=2024.06.20.1-0
uscan warn: In debian/watch no matching files for version 2025.12.24.1 
in watch line
uscan info: Scan finished
```

It is a regression, because when I downgraded "devscripts" from
(2.25.22~bpo13+1) to (2.25.15+deb13u1), "uscan" was able to obtain
upstream source without any issues.

I have tried proposed patch (by Uwe Kleine-König) and I confirm
that it fixes the problem, however I did not attempt any regression
testing with other packages.

-- 
Cheers,
 Dmitry Smirnov
 GPG key : 4096R/52B6BBD953968D1B

---

Where justice is denied, where poverty is enforced, where ignorance
prevails, and where any one class is made to feel that society is an
organized conspiracy to oppress, rob and degrade them, neither persons 
nor property will be safe.
 -- Frederick Douglass

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to