Qua, 2010-01-06 às 19:58 +0100, Joachim Breitner escreveu:
> Or we could cook up a patch to uscan so that
> actually works with --download-version.
This would be great, but isn't it going to break how other users expect
uscan to work? In the manpage it sais that in HTML only one page is
downloaded to look for the versions, and this is not what we want. I
took a look at uscan code, and it downloads the newest dir that matches
the pattern before the filename.
I'll try to explain what we have in mind using darcs as an example. The
versions of all haskell libraries and applications that uses Hackage are
disposed in this way:
The newest version is:
The current one is:
When we use a watch file like the one Joachim suggested above, uscan
--report-status works, but not uscan --download-current-version don't.
So we currently are using some opts to make it work:
When I first read the documentation of uscan I thought the first attempt
should work, but after reading with more attention the documentation and
specially the code, I noticed that it only downloads one page, with the
newest dir that matches the regexp. Do you think it's a good idea to
make uscan downloads all the matching pages, and search for the current
version in all of them?
Is there a better workaround for this?