]> git.puffer.fish Git - mirror/frr.git/commitdiff
debian: frickel a working debian/watch file
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 2 Jan 2023 11:08:41 +0000 (12:08 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 2 Jan 2023 11:08:41 +0000 (12:08 +0100)
Github changed the HTML for their releases tab, making download links a
javascript thing.  Which does not jive with uscan... at all...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
debian/watch

index f17eba41300594fc5d9e5c981e34b6e22c91c319..3379788f3e1df14f23054488a6a148b41f86afa1 100644 (file)
@@ -1,5 +1,10 @@
 version=4
 
-opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/ \
+opts="\
+searchmode=plain,\
+uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/,\
+downloadurlmangle=s&>FRR\s*(\d\S+)\s+Release<&download/frr-$1/frr-$1.tar.xz&,\
+filenamemangle=s&>FRR\s*(\d\S+)\s+Release<&frr-$1.tar.xz&,\
+" \
 https://github.com/FRRouting/frr/releases/ \
-       .*/frr-(\d\S+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
+       >FRR\s*(\d\S+)\s+Release<