On Wednesday, August 07 2019, Andreas Ronnquist wrote: > Hi > > Does anybody have an example on a watch-file that works for > gitlab.gnome.org, but works on files there, and not on Git tags? Heya, This is what I came up with: version=4 https://gitlab.gnome.org/World/lollypop/-/tags \ /World/lollypop/uploads/[0-9a-f]+/lollypop-@ANY_VERSION@@ARCHIVE_EXT@ > In my case the files look like this, and I have a hard time getting a > watch file working properly. > > https://gitlab.gnome.org/World/lollypop/uploads/1d87588d659e720e70d08e6e945fe317/lollypop-1.1.4.11.tar.xz The trick is looking at the page's source code, and noticing that the href tags are in this format: <a href="/World/lollypop/uploads/1d87588d659e720e70d08e6e945fe317/lollypop-1.1.4.11.tar.xz">lollypop-1.1.4.11.tar.xz</a> which means you can look for the "/World/lollypop/..." pattern. > [Please don't CC me, if I mail to a mailinglist, I am subscribed to it.] You might want to set Mail-Followup-To :-). Thanks, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/
Attachment:
signature.asc
Description: PGP signature