Re: debian/watch: FTP with version encoded (only) in directory

2017-01-07 Thread Paul Wise
On Sun, Jan 8, 2017 at 3:55 AM, Ole Streicher wrote:

> Thank you. I am however a bit afraid since this depends that upstream
> keeps both really consistent.

You could use the github tarball but I'm not sure how it differs from
the stilts zipballs.

> I will have a look; however it may be faster to ask upstream to have a
> better supported url.

Agreed. Just adding the version numbers to the zipball names would work.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise



Re: debian/watch: FTP with version encoded (only) in directory

2017-01-07 Thread Ole Streicher
Hi Paul,

Paul Wise  writes:
> With just the ftp site alone it can't work (see below), luckily for
> you there is a github page:
>
> http://www.star.bristol.ac.uk/~mbt/stilts/#install
> https://github.com/Starlink/starjava/releases
>
> So this monstrosity should work:
>
> version=3
> options="uversionmangle=s/\-/./,downloadurlmangle=s{.*/stilts-([\d\.\-]+)\.zip}{ftp://andromeda.star.bris.ac.uk/pub/star/stilts/v$1/stilts_src.zip};
> \
> https://github.com/Starlink/starjava/releases 
> .*/archive/stilts-([\d\.\-]+).zip

Thank you. I am however a bit afraid since this depends that upstream
keeps both really consistent.

> It won't work with the ftp site because uscan doesn't let the version
> number be in the directory name and the downloadurlmangle workaround
> doesn't work with ftp. I think both of these are probably things that
> uscan needs to support. There may be bugs for them, please check and
> if not, file new ones.

I will have a look; however it may be faster to ask upstream to have a
better supported url.

Best regards

Ole



Re: debian/watch: FTP with version encoded (only) in directory

2017-01-05 Thread Paul Wise
On Thu, Jan 5, 2017 at 10:40 PM, Ole Streicher wrote:

> How can I get this right?

With just the ftp site alone it can't work (see below), luckily for
you there is a github page:

http://www.star.bristol.ac.uk/~mbt/stilts/#install
https://github.com/Starlink/starjava/releases

So this monstrosity should work:

version=3
options="uversionmangle=s/\-/./,downloadurlmangle=s{.*/stilts-([\d\.\-]+)\.zip}{ftp://andromeda.star.bris.ac.uk/pub/star/stilts/v$1/stilts_src.zip};
\
https://github.com/Starlink/starjava/releases .*/archive/stilts-([\d\.\-]+).zip

It won't work with the ftp site because uscan doesn't let the version
number be in the directory name and the downloadurlmangle workaround
doesn't work with ftp. I think both of these are probably things that
uscan needs to support. There may be bugs for them, please check and
if not, file new ones.

uscan info: line:
ftp://andromeda.star.bris.ac.uk/pub/star/stilts/v([\d\.\-]+)/stilts_src.zip
Use of uninitialized value $filepattern in pattern match (m//) at
/usr/bin/uscan line 2612,  line 3.
uscan warn: Filename pattern missing version delimiters () without
filenamemangle
  in watch, skipping:
  ftp://andromeda.star.bris.ac.uk/pub/star/stilts/v([\d\.\-]+)/stilts_src.zip

uscan warn: downloadurlmangle option invalid for ftp sites,
  ignoring downloadurlmangle in watch:
  ftp://andromeda.star.bris.ac.uk/pub/star/stilts/v([\d\.\-]+)

-- 
bye,
pabs

https://wiki.debian.org/PaulWise



debian/watch: FTP with version encoded (only) in directory

2017-01-05 Thread Ole Streicher
Hi,

I have the following sample download URL

ftp://andromeda.star.bris.ac.uk/pub/star/stilts/v3.0-9/stilts_src.zip

Corresponding Debian version number should be 3.0.9.

I tried

version=3
options="uversionmangle=s/\-/./,filenamemangle=s/\/$/.zip/" \
ftp://andromeda.star.bris.ac.uk/pub/star/stilts/v([\d\.\-]+)/ stilts_src.zip

but it doesn't work; basically it adjusts upstream version to be 1:

uscan info: Newest upstream tarball version selected for download 
(uversionmangled): 1

How can I get this right?

Cheers

Ole