Re: uscan downloads wrong source tarball from Github
Hi Ben,
On Mon, 2025-10-20 at 18:37 +0200, Ben Hutchings wrote:
> On Sun, 2025-10-19 at 16:12 +0200, John Paul Adrian Glaubitz wrote:
> > 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.
> [...]
> > https://github.com/FrodeSolheim/fs-uae/releases/download/v?@ANY_VERSION@/fs-uae-?@ANY_VERSION@.tar.xz
> [...]
> > 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?
> 
> Quoting watch-file-4(5):
> 
> > If there are multiple matching strings of capturing patterns in
> > matching-pattern, they are all concatenated with .  (period) to form
> > the candidate upstream version.  Make sure to use the non-capturing
> > regex such as (?:[\d\.]+?) instead for the variable text matching part
> > unrelated to the version.
> 
> I.e. do not use @ANY_VERSION@ twice.
Thanks, that works as expected.
Adrian
-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Reply to: