[pkg-bioc] Correct uscan/watch pattern for CRAN packages
Rafael Laboissiere
Rafael Laboissiere <rafael@debian.org>
Wed, 15 Jun 2005 11:19:55 +0200
Dirk,
I noticed that the patterns in the debian/watch files for the r-cran-*
packages is not correct. For instance, nlme has:
http://cran.r-project.org/src/contrib/nlme_([-0-9\.]*).tar.gz
This results in the follwing:
======================================================================
$ uscan --verbose
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
http://cran.r-project.org/src/contrib/nlme_([-0-9\.]*).tar.gz
-- Found the following matching hrefs:
nlme_3.1-60.tar.gz
Newest version on remote site is 3.1-60, local version is 3.1.55
=> remote site does not even have current version
-- Scan finished
======================================================================
The pattern must be changed to the following:
http://cran.r-project.org/src/contrib/nlme_([\d\.]*)-(\d+).tar.gz
The parenthesized RE are joined with periods and this gives the expected
behavior:
======================================================================
$ uscan --verbose
-- Scanning for watchfiles in .
uscan: No debian directories found
$ cd ..
$ uscan --verbose
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
http://cran.r-project.org/src/contrib/nlme_([\d\.]*)-(\d+).tar.gz
-- Found the following matching hrefs:
nlme_3.1-60.tar.gz
Newest version on remote site is 3.1.60, local version is 3.1.55
=> Newer version available from
http://cran.r-project.org/src/contrib/nlme_3.1-60.tar.gz
-- Downloading updated package nlme_3.1-60.tar.gz
======================================================================
I did not checked carefully, but it seems that cran2deb does not create a
debian/watch file automatically. If I have some time in the near future, i
will try to implement this.
--
Rafael