Your message dated Sun, 17 May 2026 13:56:43 +0200
with message-id
<cahmxk7in9z1vey2_jlxcrros0fsrg_qt3lwqvx18w38p32a...@mail.gmail.com>
and subject line Re: Bug#1115072: uscan: does not support look ahead positive
regex
has caused the Debian Bug report #1115072,
regarding uscan: does not support look ahead positive regex
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1115072: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1115072
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: devscripts
Version: 2.25.19
Severity: minor
Dear maintainer,
This watch file does not work:
Version: 5
Template: Github
Owner: micropython
Project: micropython
Matching-Pattern:
https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/v?(\d[\d.]*)(?=")
Output:
uscan info: Found the following matching files on the web page (newest first):
https://api.github.com/repos/micropython/micropython/git/refs/tags/v1.0
() index=-0
https://api.github.com/repos/micropython/micropython/git/refs/tags/v1.0.1
() index=-0
...
However, look ahead negative does work:
Matching-Pattern:
https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/v?(\d[\d.]*)(?!")
Output:
uscan info: Found the following matching files on the web page (newest first):
https://api.github.com/repos/micropython/micropython/git/refs/tags/v1.27.0
(1.27.0) index=1.27.0-0
https://api.github.com/repos/micropython/micropython/git/refs/tags/v1.26.0
(1.26.0) index=1.26.0-0
...
--- End Message ---
--- Begin Message ---
El mié, 6 may 2026 a las 15:25, Agustin Martin (<[email protected]>) escribió:
>
> [resending again, seems that previous messages did not reach the BTS]
>
> On Sat, Sep 13, 2025 at 02:01:18PM +0800, Yangfl wrote:
> > Package: devscripts
> > Version: 2.25.19
> > Severity: minor
> >
> > Dear maintainer,
> >
> > This watch file does not work:
> >
> > Version: 5
> > Template: Github
> > Owner: micropython
> > Project: micropython
> > Matching-Pattern:
> > https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/v?(\d[\d.]*)(?=")
Hi,
I have verified that using
Matching-Pattern:
https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/v?(\d[\d.]*)(?:(?=")|$)
works (is what is used internally for Matching-Pattern in Github
template when Matching-Pattern is not explicitly set). So, this seems
not that look ahead possitive regexp is not working but that uscan may
preprocess the string before trying match (and probably strips
trailing double quote)
So, you may fix this in some ways,
* Using above matching pattern.
* Using "Release-Only: yes" in your v5 debian/watch (without
explicitly setting Matching-Pattern:).
* Using "Version-Type: STABLE_VERSION" in your v5 debian/watch
(without explicitly setting Matching-Pattern:).
* Using "Custom-Version: v?(\d[\d.]*)" in your v5 debian/watch
(without explicitly setting Matching-Pattern:), introduced in
devscripts 2.26.8, about to reach testing.
Depending on your exact needs not all above possibilities may get
exactly what you want.
I am closing this bug report with the version 2.26.8 was introduced
(all other things were introduced earlier). Please reopen if you think
this needs further work.
Thanks fot pointing out this problem.
--
Agustin
--- End Message ---