Re: Need help writing watch file for unusual, troublesome case.
I think your approach to the debian/watch file is sort of off, which
explains why it isn't working. You want to point it to a webpage
where it can get hrefs that match the given regular expression, so you
want the website to actually be specified as download_stable.shtml.
Something like this basically works and can be fine-tuned with a
better match for the source package:
version=3
http://www.xevil.com/xevil/dev/2.02r2/download_stable.shtml \
(.*)\.zip
This complains about the version name but at least works:
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
http://www.xevil.com/xevil/dev/2.02r2/download_stable.shtml (.*)\.zip
-- Found the following matching hrefs:
http://www.xevil.com/download/stable/xevilsrc2.02r2.zip
dpkg: version 'http://www.xevil.com/download/stable/xevilsrc2.02r2'
has bad syntax: epoch in version is not number
Newest version on remote site is
http://www.xevil.com/download/stable/xevilsrc2.02r2, local version is
2.02r2
dpkg: version 'http://www.xevil.com/download/stable/xevilsrc2.02r2'
has bad syntax: epoch in version is not number
=> Newer version available from
http://www.xevil.com/download/stable/xevilsrc2.02r2.zip
-- Downloading updated package xevilsrc2.02r2.zip
-- Successfully downloaded updated package xevilsrc2.02r2.zip
-- Scan finished
Cheers,
Daniel Moerner
Reply to: