Bug#738977: uscan: howto download from alioth ...

James McCoy jamessan at debian.org
Tue Sep 22 23:00:05 UTC 2015


On Wed, Sep 23, 2015 at 02:32:03AM +0900, Osamu Aoki wrote:
> After having a locally functioning multi-upstream tarball support for
> uscan, I realize this multiple download capability can be extended to
> address downloading sig file too.
> 
> opts="sigmode=next" <URL> <pattern for tarfile> debian
> opts="sigmode=prev" <URL> <pattern for sigfile> prev uupdate
> 
> <version> is prev which mean to match the previous download version.
> 
> If we use matching pattern for 3989, 3990, ... in the path within href
> as non-capturing (?:\d+?), the changing number does not impact the
> download.  Downloading version match is done exactly equal to the
> previously download one.

With this proposed functionality, if the sigfile was earlier on the page
then the watch file would have to be written as below?

  opts="sigmode=next" <URL> <pattern for sigfile> prev uupdate
  opts="sigmode=prev" <URL> <pattern for tarfile> debian

Having to rely on the order of the links in the page seems fragile.

It may make more sense to push the knowledge that we're looking for a
sigfile into the code that searches for tarfile.

Then we collect links that match the pgpsigurlmangle while we're
collecting the links for tarfile and figure out which are the correct
links after the fact, like we already do for tarfile.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20150922/5074fa57/attachment.sig>


More information about the devscripts-devel mailing list