Charles Plessy:
Hello everybody,

I am trying to crate Uscan version 5 templates for two upstream
repositories, CRAN and Bioconductor.  The draft ones there on Salsa
manage to find the new versions, but with this warning:

uscan warn: No Matching-Pattern found, using .*?@ANY_VERSION@@ARCHIVE_EXT@

https://salsa.debian.org/debian/devscripts/-/ commit/6131fe3b34a5ba3ecfc1fef4edce5b3c75f7b17e

Unfortunately, when I try to set `$watchSource->{matchingpattern}`
to `'.*?@ANY_VERSION@@ARCHIVE_EXT@'` it stops matching…

I did not find a discussion place for uscan or devscripts, so I post my
question here…

Have a nice Sunday!

Charles


Hi Charles,

I think you need to show your concrete code for setting `$watchSource->{matchingpattern}` (it was not present in the commit linked to in the message above). Based on https://salsa.debian.org/debian/devscripts/-/blob/main/lib/Devscripts/Uscan/Templates/Metacpan.pm?ref_type=heads, it seems the common pattern is something like:

```
    $watchSource->{matchingpattern}
||= "https://cpan.metacpan.org/.*$watchSource->{source}-$watchSource->{versiontype}\@ARCHIVE_EXT@";
```

At a quick glance,

```
   $watchSource->{matchingpattern} ||= '.*?@ANY_VERSION@@ARCHIVE_EXT@';
```

should work too. But the devil is often in the detail for this kind of problem.

Best regards,
Niels

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to