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 <lewa...@gmail.com> 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
>
>

Reply via email to