On Sun, Nov 02, 2025 at 07:51:56PM +0100, Hefee wrote: > Package: devscripts > Version: 2.25.22 > Severity: normal > X-Debbugs-Cc: [email protected] > > Hey, > > I try to replace the watch 4 file for Nextcloud-desktop with a version 5 > one. And this does not make the whole syntax better even more clumsy. > The problem here is that I need to limit the tags to v(\d[\d.]+) as > there are also v(\d[\d.]+)-rc.1 tags ( that should not match). > > my old one was: > version=4 > https://github.com/nextcloud/desktop/tags \ > (?:.*?/)?v?(\d[\d.]*)\.tar\.gz > > The expected one actully is limiting the urls correctly: > > Version: 5 > > Template: GitHub > Owner: nextcloud > Project: desktop > Matching-Pattern: > https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/v(\d[\d\.]+)(?:") > > I need this (?:") at the end, as otherwise v6.0.0-rc.1 would still > match, but the -rc.1 would be ignored silently and uscan would try to > download v6.0.0.
Hi, Did "Release-Only: yes" help with this issue? If not, there is a new "Custom-Version" parameter that should hopefully allow the Github template to describe versions in a more particularized way. It will go in next upload. Current "Version-Type" parameter may also help. Note that there may be some problems with (?:"), see https://bugs.debian.org/1115072 [uscan: does not support look ahead positive regex] Please close this bug report if fixed by any of the ways above. -- Agustin

