Re: Help needed for watch file after bitbucket changed download page

2022-09-29 Thread Juri Grabowski

Hello Andreas,

On 2022-09-29 14:54 4, Andreas Tille wrote:

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

I have found this bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896705

But did you have signing key from Rob Egan , because I
didn't found it on keyserver or in debian/upstream/signing-key.asc

Best Regards,
Juri Grabowski



Re: Help needed for watch file after bitbucket changed download page

2022-09-29 Thread Andreas Tille
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



Re: Help needed for watch file after bitbucket changed download page

2022-09-29 Thread Juri Grabowski

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



Help needed for watch file after bitbucket changed download page

2022-09-29 Thread Andreas Tille
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