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

Re: Q: uscan with GitHub

Il giorno lun 19 set 2022 alle 18:12:15 +02:00:00, Samuel Thibault <sthibault@debian.org> ha scritto:
That works for the tags page, but not for the releases page... The
problem is that the tags page only contains snapshots of the repository, and not an autoconf-ed tarball. For instance since recently uscan cannot
get the correct tarballs from


Hi, what I usually do with GitHub is to use its API, since it has the advantage of not breaking uscan when they do changes to the web UI.

See <https://salsa.debian.org/debian/yuzu/-/blob/debian/latest/debian/watch> for example.

In your case, as you have to download an asset and not the automatic tarball produced by GitHub, I'd do something like this:

   opts="searchmode=plain, \
filenamemangle=s/.+\/speech-dispatcher-@ANY_VERSION@.tar.gz/@PACKAGE@-$1\.tar\.gz/" \
   https://api.github.com/repos/brailcom/speechd/releases \

It could probably be done in a cleaner way, but my knowledge of regular expressions is pretty limited :/

OpenPGP key: 66DE F152 8299 0C21 99EF  A801 A8A1 28A8 AB1C EE49

Reply to: