Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Emmanuel Bourg Newsgroups: linux.debian.maint.java Subject: Re: debian/watch file for OpenJDK (was Re: Debian distributions of stable OpenJDK updates) Date: Tue, 28 May 2019 11:30:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-java-request@lists.debian.org Tue May 28 09:21:26 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.4 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, MONEY=0.5, STOCKLIKE=1] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -5.5 Openpgp: preference=signencrypt User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/21780 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/1c88d8a0-ab8e-14e5-92e9-4abab5af7fdc@apache.org Approved: robomod@news.nic.it Lines: 31 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 28 May 2019 11:21:02 +0200 X-Original-Message-ID: <1c88d8a0-ab8e-14e5-92e9-4abab5af7fdc@apache.org> X-Original-References: <4312b8ae-a1e9-7780-d7f5-37a2a7ec768a@redhat.com> <67ac780f-42e1-26cc-a8ed-f26ba091a9a0@apache.org> <9fce0f82-810f-a155-d9c2-2de8ddbafbbc@apache.org> <110cbc62-6577-b6aa-c487-151a74560593@apache.org> <20190524133947.tfsboprzcs2eaf4m@lark> <09c5b205-eb68-bd44-ee13-4b59f255ed2a@debian.org> <20190526215152.bz5a5mihbg5kgqag@lark> <6d2889ea-9079-b75f-9c3c-560339cdc70e@apache.org> Xref: csiph.com linux.debian.maint.java:11252 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{ href=\"/jdk-updates/jdk11u/rev/[^\"]*\">\s*(jdk-11\.[^<\s]*)}{ 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-.*)%$1%g" \ http://hg.openjdk.java.net/jdk-updates/jdk11u-dev/tags .*/archive/jdk-(11\..*)-ga.tar.gz Emmanuel Bourg