[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

uscan downloads wrong source tarball from Github



(Please CC me when replying as I'm not subscribed to debian-devel)

Hi,

I'm currently trying to update fs-uae [1] to the latest upstream version which now
publishes their releases on Github which means I had to update the debian/watch file.

I followed the guide from the Debian wiki [2] and used the following options and URLs
for debian/watch:

version=4
opts="searchmode=plain,\
filenamemangle=s%v?@ANY_VERSION@%@PACKAGE@-$1.tar.xz%" \
https://api.github.com/repos/FrodeSolheim/fs-uae/releases?per_page=100 \
https://api.github.com/repos/[^/]+/[^/]+/tarball/v?@ANY_VERSION@

While this works and actually downloads the latest upstream version, it doesn't download
the correct upstream tarball:

glaubitz@z6:..debian/fs-uae-debian> uscan
Newest version of fs-uae on remote site is 3.2.35, local version is 3.1.66
 => Newer package available from:
        => https://api.github.com/repos/FrodeSolheim/fs-uae/tarball/v3.2.35
Successfully symlinked ../fs-uae-3.2.35.tar.xz to ../fs-uae_3.2.35.orig.tar.gz.
glaubitz@z6:..debian/fs-uae-debian> md5sum ../fs-uae-3.2.35.tar.xz
e89fae1a1b57b02b41cf10941da18add  ../fs-uae-3.2.35.tar.xz
glaubitz@z6:..debian/fs-uae-debian>

For comparison, here are the MD5 sums of the upstream release source tarball as
well as the automatically generated tarball generated by Github:

glaubitz@z6:/tmp> wget --quiet https://github.com/FrodeSolheim/fs-uae/releases/download/v3.2.35/fs-uae-3.2.35.tar.xz
glaubitz@z6:/tmp> md5sum fs-uae-3.2.35.tar.xz 
a4b855a296d6fc0d458582cd9d320a2e  fs-uae-3.2.35.tar.xz
glaubitz@z6:/tmp> wget --quiet https://github.com/FrodeSolheim/fs-uae/archive/refs/tags/v3.2.35.tar.gz
glaubitz@z6:/tmp> md5sum v3.2.35.tar.gz 
f1e56b7a1d38356094dfcdd41133fd51  v3.2.35.tar.gz
glaubitz@z6:/tmp>

Does anyone know what contents to use for debian/watch so it downloads either
of the two tarballs with the correct MD5 sum?

FWIW, I have not decided yet which of the two source tarballs to use, so I would
like to know the proper debian/watch contents for both.

Thanks,
Adrian

> [1] https://tracker.debian.org/pkg/fs-uae
> [2] https://wiki.debian.org/debian/watch#GitHub

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: