On Sat, Aug 03, 2024 at 10:39:03AM +0100, Rebecca N. Palmer wrote: > > A fix is to use the downloadurlmangle option, i.e. this line in d/watch > > (based on David Steele's solution for git*hub* in #1019696): > > That's not enough: it was able to notice that there was a new upstream > available, but not to actually update to it. This works: > > version=4 > opts="uversionmangle=s/-([ab])/~$1/g,dversionmangle=auto,repacksuffix=+dfsg,downloadurlmangle=s#tags/([0-9.]+)#archive/$1/openpyxl-$1.tar.gz#g,filenamemangle=s#tags/([0-9.]+)#openpyxl-$1.tar.gz#g" > \ > https://foss.heptapod.net/openpyxl/openpyxl/-/tags .*/tags/@ANY_VERSION@
Hi, Rebecca, You may want to try using a gitlab template (available together with debian/watch v5). See attached pach, seems to work here. Not sure if "Uversion-Mangle" is required. Hope this helps, -- Agustin
>From 23d995e8cc4b0758dae34165253a824ca621be58 Mon Sep 17 00:00:00 2001 From: Agustin Martin <[email protected]> Date: Tue, 7 Apr 2026 00:09:28 +0200 Subject: [PATCH] debian/watch: Convert to v5 watch using Gitlab template. --- debian/watch | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/debian/watch b/debian/watch index b7a7f47d..61996d00 100644 --- a/debian/watch +++ b/debian/watch @@ -1,5 +1,7 @@ -version=4 -# tag sorting is always backwards in this repository whatever it's set to (possibly because it's non-git) -# so explicitly set it as backwards and point to the current last page as better than nothing -opts="uversionmangle=s/-([ab])/~$1/g,dversionmangle=auto,repacksuffix=+dfsg,downloadurlmangle=s#tags/([0-9.]+)#archive/$1/openpyxl-$1.tar.gz#g,filenamemangle=s#tags/([0-9.]+)#openpyxl-$1.tar.gz#g" \ -https://foss.heptapod.net/openpyxl/openpyxl/-/tags?page=7&sort=updated_asc .*/tags/@ANY_VERSION@ +Version: 5 + +Template: Gitlab +Dist: https://foss.heptapod.net/openpyxl/openpyxl +Dversion-Mangle: auto +Uversion-Mangle: s/-([ab])/~$1/g +Repack-Suffix: +dfsg -- 2.53.0

