#942274 uscan: handling several levels of http links

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Samuel Thibault
Date:
2023-12-22 14:15:05 UTC
Severity:
wishlist
#942274#5
Date:
2019-10-13 16:36:51 UTC
From:
To:
Hello,

For the hwloc package, there is on single webpage that references all
releases.

For instance,
https://www.open-mpi.org/projects/hwloc/

points at both
https://www-lb.open-mpi.org/software/hwloc/v2.1/
https://www-lb.open-mpi.org/software/hwloc/v2.0/

And those do provide links to the files. I had hardcoded the
https://www-lb.open-mpi.org/software/hwloc/v2.0/ in debian/watch, but
that doesn't catch the 2.1 release of course.

I tried something  like

https://www.open-mpi.org/software/hwloc/ \
https://www-lb.open-mpi.org/software/hwloc/(v[\d\.]+)/ \
https://download.open-mpi.org/release/hwloc/(v[\d\.]+)/hwloc(?:[_\-]v?|)@ANY_VERSION@@ARCHIVE_EXT@

But this doesn't seem supported. Am I missing something or is handling
several levels of http links not supported?

Samuel
--- /etc/devscripts.conf ---
--- ~/.devscripts --- DEBSIGN_KEYID="0xDB550E89F0FA54F3!" DEBCHANGE_AUTO_NMU=no DEBSIGN_PROGRAM="gpg --use-agent"
#942274#10
Date:
2023-12-22 14:04:54 UTC
From:
To:
[...]
https://salsa.debian.org/games-team/7kaa-music

Upstream lists versions at:
https://www.7kfans.com/download/
That page links to pages such as:
https://www.7kfans.com/download/v2.15.6.html
And those pages link to the tar archive:
https://www.7kfans.com/downloads/7kaa-music-2.15.tar.bz2

So I need uscan to somehow recurse from the main download page to the
latest version's page to find the tar archive link.