• Help needed for watch file after bitbucket changed download page

    From Andreas Tille@21:1/5 to All on Thu Sep 29 09:30:01 2022
    Hi,

    the watch file for metabat[1] used to work nicely until some point in
    time when bitbucket replaced `v@ANY_VERSION@` by the commit ID which is
    not sensibly sorting any more. Is there any trick how I can get
    bitbucket pages working again?

    Kind regards

    Andreas.

    [1] https://salsa.debian.org/med-team/metabat/-/blob/master/debian/watch

    --
    http://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Juri Grabowski@21:1/5 to All on Thu Sep 29 13:20:01 2022
    Hello,

    maybe it can be helpfull for you. So you can get commit hash of your tag
    with bitbucket api:
    curl -s -L https://api.bitbucket.org/2.0/repositories/berkeleylab/metabat/refs/tags/v2.15 |jq -C -r .target.hash

    Other way is to use more generic git mode:

    cat <<'EOF'>debian/watch
    version=4

    opts="mode=git,pgpmode=gittag,dversionmangle=auto" \ https://bitbucket.org/berkeleylab/metabat.git refs/tags/v([\d\.\d]+)
    EOF

    Best Regards,
    Juri Grabowski

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Tille@21:1/5 to All on Thu Sep 29 15:00:02 2022
    Hi Juri,

    Am Thu, Sep 29, 2022 at 12:38:03PM +0200 schrieb Juri Grabowski:
    maybe it can be helpfull for you. So you can get commit hash of your tag
    with bitbucket api:
    curl -s -L https://api.bitbucket.org/2.0/repositories/berkeleylab/metabat/refs/tags/v2.15 |jq -C -r .target.hash

    I confirm this returns the commit hash - but I have no idea how you want
    to use this information inside d/watch.

    Other way is to use more generic git mode:

    cat <<'EOF'>debian/watch
    version=4

    opts="mode=git,pgpmode=gittag,dversionmangle=auto" \ https://bitbucket.org/berkeleylab/metabat.git refs/tags/v([\d\.\d]+)
    EOF

    I confirm this works. However, uscan does not do the usual link to orig.tar.gz. Any idea why this is the case?

    Kind regards

    Andreas.

    --
    http://fam-tille.de

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