[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)



Le 28/05/2019 à 11:11, Paul Wise a écrit :

> 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

Thank you Paul. After I posted the previous message I dug into the uscan
documentation and found the new pagemangle option.

Here is the watch file I wrote to match the OpenJDK 11 GA releases:

version=4
opts="repack,compression=xz,pagemangle=s%(jdk-.*)%<a
href='http://hg.openjdk.java.net/jdk-updates/jdk11u/archive/$1.tar.gz'>$1</a>%g"
\
http://hg.openjdk.java.net/jdk-updates/jdk11u-dev/tags
.*/archive/jdk-(11\..*)-ga.tar.gz

Emmanuel Bourg


Reply to: