[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: watch file help



On 17/03/14 22:21, Matt Zagrabelny wrote:
> Greetings,
> 
> I am attempting to write a watch file, but am hitting some issues. I
> thought I would start with a pretty simple regex to grab the static
> upstream version:
> 
> % cat debian/watch
> version=3
> https://launchpad.net/ocsinventory-server/stable-2.1/2.1/+download/OCSNG_UNIX_SERVER-(2.1).tar.gz
> 
> But I am hitting an issue:
> 
> % uscan --report --verbose
> -- Scanning for watchfiles in .
> -- Found watchfile in ./debian
> -- In debian/watch, processing watchfile line:
>    https://launchpad.net/ocsinventory-server/stable-2.1/2.1/+download/OCSNG_UNIX_SERVER-(2.1).tar.gz
> uscan warning: In watchfile debian/watch, reading webpage
>   https://launchpad.net/ocsinventory-server/stable-2.1/2.1/+download/
> failed: 500 Can't connect to launchpad.net:443
> -- Scan finished
> 
> Not sure if uscan can handle launchpad.net's https.
> 
> Any ideas or suggestions?
> 
> Thanks!
> 
> -mz
> 
> 

I may be wrong, but I'm not sure if uscan allows the full url to be in
the watch file...

Looking at [1] there are quite a few packages that you could adapt to
suit your watch file.

I've just tried the following which seems to work:

> version=3
> https://launchpad.net/ocsinventory-server/+download .*/OCSNG_UNIX_SERVER-(.+).tar.gz

Though you will need to mangle the upstream versions, to sort the rc
versions before the releases. I use the following in one of my packages [2].

Hope that helps,

Daniel Lintott

[1] http://codesearch.debian.net/search?q=launchpad+path%3Adebian%2Fwatch
[2] http://sources.debian.net/src/gns3/0.8.6-3/debian/watch

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: