• Re: Help for watch file needed (has anything changed on gitlab that nee

    From Andreas Tille@21:1/5 to All on Wed Feb 26 16:30:01 2025
    Am Wed, Feb 26, 2025 at 03:00:07PM +0100 schrieb Julien Plissonneau DuquΦne:
    But the best approach is probably to switch to mode=git as this is more robust and future-proof, and there is no added value in fetching and using the source archives when they are generated automatically from the tags in the repository by gitlab. That's just the same content. The same goes for GitHub and others.

    Works, thanks, Andreas.

    --
    https://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ahmad Khalifa@21:1/5 to Andreas Tille on Wed Feb 26 19:10:01 2025
    On 26/02/2025 13:33, Andreas Tille wrote:
    version=4
    https://gitlab.com/l_sim/v_sim/tags?sort=updated_desc .*/v_sim-(\d[\d.]+)\.tar\.gz

    In case it helps, for gitlab it works with plain mode and the version is repeated in the path and file name.

    This is similar to what worked for me with openrgb where they don't use
    tags reliably:

    opts="searchmode=plain" \
    https://gitlab.com/l_sim/v_sim/-/tags archive/\d[\d.]*/v_sim-@ANY_VERSION@@ARCHIVE_EXT@


    --
    Regards,
    Ahmad

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Soren Stoutner@21:1/5 to Debian Mentors List on Wed Feb 26 11:07:20 2025
    Copy: debian-science@lists.debian.org (Debian Science List)

    This is a multi-part message in MIME format.

    --nextPart5862772.DvuYhMxLoT
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain; charset="utf-8"

    On Wednesday, February 26, 2025 11:03:34 AM MST Ahmad Khalifa wrote:
    On 26/02/2025 13:33, Andreas Tille wrote:
    version=4
    https://gitlab.com/l_sim/v_sim/tags?sort=updated_desc .*/v_sim-(\d[\d.]+)\.tar\.gz
    In case it helps, for gitlab it works with plain mode and the version is repeated in the path and file name.

    This is similar to what worked for me with openrgb where they don't use
    tags reliably:

    opts="searchmode=plain" \
    https://gitlab.com/l_sim/v_sim/-/tags archive/\d[\d.]*/v_sim-@ANY_VERSION@@ARCHIVE_EXT@

    There are additional examples at:

    https://wiki.debian.org/debian/watch/#GitLab

    --
    Soren Stoutner
    soren@debian.org

    --nextPart5862772.DvuYhMxLoT
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/html; charset="utf-8"

    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    </head>
    <body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On Wednesday, February 26, 2025 11:03:34 AM MST Ahmad Khalifa wrote:</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; On 26/02/2025 13:33, Andreas Tille wrote:</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; version=4</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; https://gitlab.com/l_sim/v_sim/tags?sort=updated_desc</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; .*/v_sim-(\d[\d.]+)\.tar\.gz</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; In case it helps, for gitlab it works with plain mode and the version is<
  • From =?UTF-8?Q?Julien_Plissonneau_Duqu=C@21:1/5 to All on Wed Feb 26 15:10:01 2025
    Hi Andreas,

    Apparently on the Tags page the links are now generated on the fly by
    some Javascript code, and what appears in the page source is mangled
    like:
    data-download-links="[{&quot;text&quot;:&quot;zip&quot;,&quot;path&quot;:&quot;/l_sim/v_sim/-/archive/3.8.0/v_sim-3.8.0.zip&quot;},

    You could try to scan for these but that seems rather brittle.
    Alternatively maybe GitLab has an API you could use, like what is
    documented for GitHub in uscan's man page, but that's only marginally
    better and API use may be subject to rate limiting which could cause
    issues now or later (rate limiting is definitely an issue on GitHub).

    But the best approach is probably to switch to mode=git as this is more
    robust and future-proof, and there is no added value in fetching and
    using the source archives when they are generated automatically from the
    tags in the repository by gitlab. That's just the same content. The same
    goes for GitHub and others.

    Cheers,

    --
    Julien Plissonneau Duquène

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)