Bug#1040314: devscripts: uscan(1) github.com example could be improved

Patrice Duroux <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.general,gmane.linux.debian.devel.www
Message-ID <CAGKjw9+=w7jx-FQbmZMc1rLvZ54=85YqVxSqR=BRde=7BcNRJg@mail.gmail.com>
Hi,

And Jan Niehusmann recently changes at Debian Wiki (
https://wiki.debian.org/debian/watch?action=diff&rev2=108&rev1=107) to:

version=4opts="searchmode=plain,\filenamemangle=s%.*/v?@ANY_VERSION@%@PACKAGE@-$1.tar.xz%"
\https://api.github.com/repos/<user>/<project>/releases?per_page=50
\https://api.github.com/repos/[^/]+/[^/]+/tarball/v?@ANY_VERSION@


uscan(1) in devscripts-2.23.6 writes:

version=4
opts="filenamemangle=s%(?:.*?)?v?@ANY_VERSION@(@ARCHIVE_EXT@)%@PACKAGE@-$1$2%"
\
https://github.com/<user>/<project>/tags \
(?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@

I don't know how/who could better coordinate that.
Maybe removing some sections in the Debian Wiki as there is already a link
to uscan(1)?

Regards,
Patrice

On Tue, 04 Jul 2023 06:33:01 -0500 Daniel Lewart <[email protected]> wrote:
> Package: devscripts
> Version: 2.23.4
> Severity: minor
>
> Devscripts Maintainers,
>
> The uscan(1) github.com example is:
>   version=4
>   opts="filenamemangle=s%(?:.*?)?v?@ANY_VERSION@(@ARCHIVE_EXT@)%@PACKAGE@-$1$2%"
\
>       https://github.com/<user>/<project>/tags \
>       (?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@
>
> The beginning of the pattern, which will be discarded, is:
>         (?:.*?)?v?
> It should be simplified to:
>         .*?
> or made to correspond to the matching pattern:
>         (?:.*?/)?v?
>
> Also, the debian/watch wiki:
>         https://wiki.debian.org/debian/watch
> <https://wiki.debian.org/debian/watch%3Cbr%3E%3E> seems to be not as good
as uscan(1), which is confusing.
>
> Of course, the best solution would be the following:
>     #1010604 Support commonly used providers like github.com and
gitlab.com
>     within watch file:
>         https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010604
> <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010604%3Cbr%3E%3E>
> Thank you!
> Daniel Lewart
> Urbana, Illinois
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.