Re: Creating a proper d/watch file
On Tue, Nov 17, 2020 at 02:53:10PM +0100, Mechtilde Stehmann wrote: > version=4 > opts=\ > filenamemangle=s/.*=(.*)/$1/ \ > https://pdfbox.apache.org/download.cgi > .*/jbig2-imageio-(\d(\.\d)*)-src\.zip&action=download To fix the version extraction, replace (\.\d)* with (?:\.\d)* to make it non-capturing. To fix the file name, replace filenamemangle=s/.*=(.*)/$1/ with filenamemangle=s/.*\/([^\/]+\.zip).*/$1/ (disclaimer: I have no idea what is filenamemangle intended to do and if it's the best option here). -- WBR, wRAR signature.asc Description: PGP signature
Creating a proper d/watch file
Hello I want to improve my /watch files. I want to do it for the package jbig2-imageio The source code is at https://pdfbox.apache.org/download.cgi and the download link is https://www.apache.org/dyn/closer.lua?filename=pdfbox/jbig2-imageio/3.0.3/jbig2-imageio-3.0.3-src.zip&action=download My last try for a watch file is version=4 opts=\ filenamemangle=s/.*=(.*)/$1/ \ https://pdfbox.apache.org/download.cgi .*/jbig2-imageio-(\d(\.\d)*)-src\.zip&action=download Can someone show me whrer I'm wrong? Kind regards -- Mechtilde Stehmann ## Debian Developer ## PGP encryption welcome ## F0E3 7F3D C87A 4998 2899 39E7 F287 7BBA 141A AD7F signature.asc Description: OpenPGP digital signature