Copy:
[email protected] (Sergio Durigan Junior)
This is a multi-part message in MIME format.
--nextPart3281371.BaCyhgDA2a
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
https://wiki.debian.org/debian/watch#Gitlab[1]
"From 2024/03 above solution do not work anymore since Gitlab changed their tag
ordering. You can use direct API access:”
version=4
opts=\
searchmode=plain,\
https://gitlab.com/api/v4/projects/PROJECTID/releases archive/v?\d[\d.]+/<project>/-v?
([\d.]+)@ARCHIVE_EXT@
Looks like you aren’t the only one with this problem. ;)
On Tuesday, March 26, 2024 1:05:10 PM MST Sergio Durigan Junior wrote:
On Monday, March 25 2024, Shriram Ravindranathan wrote:
Dear Mentors,
I noticed from the past couple of days, uscan seems to be having trouble finding files from the gitlab tags page.
```
$ uscan
uscan warn: In debian/watch no matching files for watch line
https://gitlab.com/saalen/highlight/tags?sort=updated_desc
.*/archive/(\d\S+)/.*\.tar\.gz.*>
```
Checking the same pattern with grep shows that it does find a match
```
$ curl -L "https://gitlab.com/saalen/highlight/tags?sort=updated_desc" | grep -E ".*/archive/([0-9]\S+)/.*\.tar\.gz.*">
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 126 100 126 0 0 287 0 --:--:-- --:--:-- --:--:--
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:--
0<div class="js-source-code-dropdown" data-css-class=""
data-download-artifacts="[]"
data-download-links="[{"text":"zip","path":
"/saalen/highlight/-/archive/4.11/highlight-4.11.zip"},{"te
xt":"tar.gz","path":"/saalen/highlight/-/arc
hive/4.11/highlight-4.11.tar.gz"},{"text":"tar.bz2&quo
t;,"path":"/saalen/highlight/-/archive/4.11/highlight-4.11.
tar.bz2"},{"text":"tar","path":"/s
aalen/highlight/-/archive/4.11/highlight-4.11.tar"}]"></div>>
100 85448 100 85448 0 0 51822 0 0:00:01 0:00:01 --:--:-- 401k ```
It seems like a few other packages are also having similar troubles with uscan, for example lomiri <https://tracker.debian.org/pkg/lomiri>
Is there a way to fix this?
--nextPart3281371.BaCyhgDA2a
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="UTF-8"
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="
https://wiki.debian.org/debian/watch#Gitlab">https://wiki.debian.org/debian/watch#Gitlab</a></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">"From 2024/03 above solution do not work anymore since Gitlab changed their tag ordering. You can use direct API access:”</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">version=4</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">opts=\</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">searchmode=plain,\</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">
https://gitlab.com/api/v4/projects/PROJECTID/releases archive/v?\d[\d.]+/<project>/-v?([\d.]+)@ARCHIVE_EXT@</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Looks like you aren’t the only one with this problem. ;)</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On Tuesday, March 26, 2024 1:05:10 PM MST Sergio Durigan Junior wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> On Monday, March 25 2024, Shriram Ravindranathan wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > Dear Mentors,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > I noticed from the past couple of days, uscan seems to be having trouble</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > finding files from the gitlab tags page.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > ```</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > $ uscan</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > uscan warn: In debian/watch no matching files for watch line</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >
https://gitlab.com/saalen/highlight/tags?sort=updated_desc</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > .*/archive/(\d\S+)/.*\.tar\.gz.*> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > ```</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > Checking the same pattern with grep shows that it does find a match</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > ```</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > $ curl -L "
https://gitlab.com/saalen/highlight/tags?sort=updated_desc" |</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > grep -E ".*/archive/([0-9]\S+)/.*\.tar\.gz.*"> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > % Total % Received % Xferd Average Speed Time Time Time </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > Current</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > &
nbsp; Dload Upload Total Spent Left </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > &
nbsp; Speed</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > 100 126 100 126 0 0 287 0 --:--:-- --:--:-- --:--:--&
nbsp; </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > 287> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > 0 0 0 0 0 0 0
0 --:--:-- 0:00:01 --:--:-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > 0<div class="js-source-code-dropdown" data-css-class=""</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > data-download-artifacts="[]"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > data-download-links="[{&quot;text&quot;:&quot;zip&quot;,&quot;path&quot;:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > &quot;/saalen/highlight/-/archive/4.11/highlight-4.11.zip&quot;},{&quot;te</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > xt&quot;:&quot;tar.gz&quot;,&quot;path&quot;:&quot;/saalen/highlight/-/arc</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > hive/4.11/highlight-4.11.tar.gz&quot;},{&quot;text&quot;:&quot;tar.bz2&quo</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > t;,&quot;path&quot;:&quot;/saalen/highlight/-/archive/4.11/highlight-4.11.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > tar.bz2&quot;},{&quot;text&quot;:&quot;tar&quot;,&quot;path&quot;:&quot;/s</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > aalen/highlight/-/archive/4.11/highlight-4.11.tar&quot;}]"></div>> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > 100 85448 100 85448 0 0 51822 0 0:00:01 0:00:01 --:--:-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > 401k ```</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > It seems like a few other packages are also having similar troubles with</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > uscan, for example lomiri <
https://tracker.debian.org/pkg/lomiri></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > Is there a way to fix this?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I don't know if there's an "official" way to fix this, but the problem</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> seems to be the fact the actual download link is embedded inside an</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> element of the page, like this:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> <div class="js-source-code-dropdown" ...</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> data-download-links="[{&quot;text&quot;:&quot;zip&quot;,&quot;path&quot;:&quo</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> t;/saalen/highlight/-/archive/v4.11/highlight-v4.11.zip&quot;},{&quot;text&quo</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> t;:&quot;tar.gz&quot;,&quot;path&quot;:&quot;/saalen/highlight/-/archive/v4.11</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> /highlight-v4.11.tar.gz&quot;},...></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> uscan by default will try to parse the HTML of the page, which is not</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> helpful in this case. You can try changing its search mode by</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> specifying "searchmode=plain" as part of the "opts" variable. You may</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> have to adjust your "filenamemange" regexp as well.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Cheers,</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Soren Stoutner</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">
[email protected]</p>
</body>
</html>
--nextPart3281371.BaCyhgDA2a--
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAmYDK+0ACgkQwufLJ66w tgNgYRAAj4USEHVPhzGCP8/IEC7N2o1r3VE2z5/zgfyuAIcIviX73vx0clr9InAa lEYwxB1+/C3QhrcVUiI2DKI8TinCShEHRbNp9/CgKlGtPs3AeHbLhGZKx1aEr1xk xmg3sJlqoS9oiIf5/NtOwusrOCze9CdrliwQL7JlSj9G56SnsV6t1nzfzwhPnAvP oYUt/wu2UUvvCHRMvlEGtU++y+XlMSdvFM/wRO9MtKFNMXaEAQseasPaTDFqqsVf iA3MBmYvlT4I8+ahr9Sqd+zBY1TnTbTaL1QLabcMqJvh5xBMWA59TMz8v/NJuDwV 6oeayuvLfJegHVYTAjCCf25K4cbs6ZkyuJJ42WJzqRsUzZCxD5lLik/MiMexzpqd tzbeO5D8tWJQQjOmskdU+DIqwDy2ypzobatl8a5xpaM0ys7HI+GH3w23V+icdLSS PVgZCOM81NEcbdijkoDWaeicetbPe4hzW1tRTT5oVxQQu0HZ0itxKJ2jN+6il4c5 hkgX2MMEgPqql3RCAx1i0fDF9I64wq5RAdShZ2S1J8WDpog3FwojzJmkAe4+WFYY 6dg22u/kvso5XpYUEKcrv8MSUzAK6xjIjNEpni7EWALGyujsu3DeWamytFqufjPU SCSModDHB02oZtTai85qsJ4FzAT4O3WeD0Ktc4zoItXxglEDxDs=
=AJbq
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)