Package: devscripts
Version: 2.20.2
Severity: important
Usertags: uscan

I'm trying to rebuild an old version of capstone. For the source orig I tried to use uscan to get the tar.gz with --download-current-version but it failed to find it. Tried to debian/watch files, the current one:

```
version=3
https://github.com/aquynh/capstone/releases .*/archive/(3\..*)\.tar\.gz
```

And one with version 4:

```
version=4
opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%capstone-$1.tar.gz%" \
  https://github.com/aquynh/capstone/tags \
  (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
```

Both failed in the same way, they work without parameters, downloading the latest version, but when it comes to use --download-current-version give the same "no matching hrefs for version", but the tag for version 3.0.4 does exist in github[1]:

```
root@c7e7c30e65ea:/opt/src# uscan
uscan: Newest version of capstone on remote site is 4.0.1, local version is 3.0.4
uscan:    => Newer package available from
      https://github.com/aquynh/capstone/archive/4.0.1.tar.gz
Successfully symlinked ../capstone-4.0.1.tar.gz to ../capstone_4.0.1.orig.tar.gz.
uupdate: debian/source/format is "3.0 (quilt)".
uupdate: Auto-generating capstone_3.0.4-0.3.debian.tar.xz
uupdate: -> Copy to      capstone_4.0.1-1.debian.tar.xz

root@c7e7c30e65ea:/opt/src# uscan --download-current-version
uscan warn: In debian/watch no matching hrefs for version 3.0.4 in watch line https://github.com/aquynh/capstone/tags (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
```

[1]: https://github.com/aquynh/capstone/releases/tag/3.0.4

Reply via email to