Fwd: Re: Bug#694418: ITP: fits ... help needed for watch file
Hi everyone,
I wish you a Happy New Year 2013!
Even though Aaron Ucko was very kind and helpful, I still have some problems
to provide a correct watch file for my libfits-java package
(see http://anonscm.debian.org/gitweb/?p=debian-science/packages/fits.git ).
My watch file currently looks as follows:
version=3
opts=downloadurlmangle=s:$:fits_src.jar: \
http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v([\d\.]+)\/v([\d\.]+).*
Instead of the source file "fits_src.jar", a binary file "v1.10.0" is downloaded
(see below). How do I use "downloadurlmangle" and "filenamemangle" here in the
correct way?
Best regards,
Florian
-------- Original-Nachricht --------
Betreff: Re: Bug#694418: ITP: fits -- Java library for the I/O handling of FITS files
Datum: Tue, 18 Dec 2012 17:16:07 +0100
Von: Florian Rothmaier <frothmai@ari.uni-heidelberg.de>
An: Aaron M. Ucko <ucko@debian.org>
Hi Aaron,
I tried it with a slash between the directory and file names.
frothmai@auva224:~/work/packaging/playground/fits$ uscan --verbose
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
opts="downloadurlmangle=s:$:/fits_src.jar:" http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v([\d\.]+)\/v([\d\.]+).*
-- Found the following matching hrefs:
v1.00.0/
v1.00.1/
v1.00.2/
v1.01.0/
v1.02.0/
v1.03.0/
v1.03.1/
v1.04.0/
v1.05.0/
v1.05.1/
v1.06.0/
v1.07.0/
v1.08.0/
v1.08.1/
v1.10.0/
Newest version on remote site is 1.10.0, local version is 1.0.8
=> Newer version available from
http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v1.0/v1.10.0//fits_src.jar
-- Downloading updated package v1.10.0
-- Scan finished
As before, "uscan" detects the correct file by saying
"Newer version available from ..."
but my download syntax doesn't work. Still, in the parent directory the binary
file "v1.10.0" can be found after "uscan" has finished its job, see:
frothmai@auva224:~/work/packaging/playground/fits$ ls -lart ../
insgesamt 104536
...
drwxr-xr-x 19 frothmai frothmai 4096 Dez 10 16:32 ..
drwxrwxr-x 5 frothmai frothmai 4096 Dez 18 09:52 fits
-rw-rw-r-- 1 frothmai frothmai 207648 Dez 18 17:05 v1.10.0
drwxr-xr-x 48 frothmai frothmai 4096 Dez 18 17:05 .
frothmai@auva224:~/work/packaging/playground/fits$
Best regards,
Florian
Reply to: