#1142563 uscan: Fails to follow cross-domain HTTP redirects

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Gioele Barabucci
Date:
2026-07-21 21:01:02 UTC
Severity:
normal
Tags:
#1142563#5
Date:
2026-07-21 20:58:56 UTC
From:
To:
Dear uscan developers,

uscan currently fails to follow HTTP redirects that involve changes of
domain, such as when <http://foo.org/baz> redirects via HTTP 307 to
<http://quuz.org/a/b/>.

A concrete example of this issue can be seen here:
https://debaudit.debian.net/upstream2orig/result/c5e596485ba8a9582774c982724ad1d76a6e49abe4f5d71765264b6defa0d494

 From the `uscan --debug` logs:

```
Source: https://gioele.io/lsb-release-minimal/tags
Matching-Pattern: .*/v@ANY_VERSION@@ARCHIVE_EXT@
[…]
uscan debug: watch file has:
     $base        = https://gioele.io/lsb-release-minimal/tags
[…]
     $site        = https://gioele.io
     $basedir     = /lsb-release-minimal/
uscan debug: line: search()
uscan info: Requesting URL:
    https://gioele.io/lsb-release-minimal/tags
uscan info: redirections:
https://codeberg.org/gioele/lsb-release-minimal/tags
[…]
uscan info: Found the following matching files on the web page (newest
first):
https://gioele.io/gioele/lsb-release-minimal/archive/v12.1.tar.gz
(12.1) index=12.1-1
[…]
uscan info: uscan parser results:
     $base               = https://gioele.io/lsb-release-minimal/tags
[…]
     $newfile            =
https://gioele.io/gioele/lsb-release-minimal/archive/v12.1.tar.gz
```

You can find a MR that fixes this issue at:

https://salsa.debian.org/debian/devscripts/-/merge_requests/656

Regards,