Re: uscan downloads wrong source tarball from Github
Hi again,
On Sat, 2025-09-20 at 10:53 +0000, Holger Levsen wrote:
> On Sat, Sep 20, 2025 at 12:39:38PM +0200, John Paul Adrian Glaubitz wrote:
> > (Please CC me when replying as I'm not subscribed to debian-devel)
> 
> ack.
>  
> > I followed the guide from the Debian wiki [2] and used the following options and URLs
> > for debian/watch:
>  
> there has been quite some development on uscan recently, so which version
> of devscripts have you been using?
Sorry for the very late reply! I have now installed devscripts from trixie-backports
and downloading the desired upstream tarball works, the orig.tar.xz symlink that is
created contains the version number twice.
Demonstration:
glaubitz@z6:..debian/fs-uae-debian> cat debian/watch
version=4
opts="searchmode=plain" \
https://api.github.com/repos/FrodeSolheim/fs-uae/releases?per_page=100 \
https://github.com/FrodeSolheim/fs-uae/releases/download/v?@ANY_VERSION@/fs-uae-?@ANY_VERSION@.tar.xz
glaubitz@z6:..debian/fs-uae-debian> uscan
Newest version of fs-uae on remote site is 3.2.35.3.2.35, local version is 3.1.66
 => Newer package available from:
        => https://github.com/FrodeSolheim/fs-uae/releases/download/v3.2.35/fs-uae-3.2.35.tar.xz
Successfully symlinked ../fs-uae-3.2.35.tar.xz to ../fs-uae_3.2.35.3.2.35.orig.tar.xz.
glaubitz@z6:..debian/fs-uae-debian>
glaubitz@z6:..debian/fs-uae-debian> ls -l ../fs-uae*3.2.35*
lrwxrwxrwx 1 glaubitz glaubitz      20 Oct 19 16:09 ../fs-uae_3.2.35.3.2.35.orig.tar.xz -> fs-uae-3.2.35.tar.xz
-rw-r--r-- 1 glaubitz glaubitz 3620972 Oct 19 16:09 ../fs-uae-3.2.35.tar.xz
glaubitz@z6:..debian/fs-uae-debian> 
Anyone has any idea how to address the messed up version number?
Thanks,
Adrian
PS: Not on the list, please CC me.
-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Reply to: