[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian/watch file for OpenJDK (was Re: Debian distributions of stable OpenJDK updates)



On Tue, May 28, 2019 at 4:22 PM Emmanuel Bourg wrote:

> There is the Mercurial tags page [1] but unlike GitHub's tags pages it
> doesn't play nice with uscan because the links are built with the hash
> of the revision and not the value of the tag.

FTR, uscan is now flexible enough that it can apply arbitrary
transformations to the HTML and download URL so it is easy enough to
create a watch file that works:

version=4
opts="pagemangle=s{<a
href=\"/jdk-updates/jdk11u/rev/[^\"]*\">\s*(jdk-11\.[^<\s]*)}{<a
href=\"archive/$1.tar.gz">$1}g" \
https://hg.openjdk.java.net/jdk-updates/jdk11u/tags \
.*/jdk-(.*).tar.gz

$ uscan --watchfile watch --package openjdk --upstream-version 0
uscan: Newest version of openjdk on remote site is 11.0.4+4, local version is 0
uscan:    => Newer package available from
      https://hg.openjdk.java.net/jdk-updates/jdk11u/archive/jdk-11.0.4+4.tar.gz

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


Reply to: