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

Re: Bug#466550: Pristine source from upstream VCS repository



Ben Hutchings <ben@decadent.org.uk> writes:

> # Upstream homepage links to a file called puzzles.tar.gz which
> # redirects to puzzles-r$version.tar.gz.  uscan can't check that.
> # However, this is a nightly snapshot numbered according to the SVN
> # revision number, so we can extract the version number from its web
> # view.
> version=3
> opts="filenamemangle=s/.*\?rev=(\d+).*/sgt-puzzles_$1.orig.tar.gz/,downloadurlmangle=s@.*\?rev=(\d+).*@http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-r$1.tar.gz@"; \
> http://svn.tartarus.org/sgt/puzzles/ /sgt\?rev=(\d+)\&view=rev
> 
> OK, so it's not exactly pretty...

It also fails in those instances where “available from a VCS” does
not mean “available as a working tree of files via HTTP”. Some VCS
repositories make *only* the revision data available, for various
reasons.

-- 
 \         “I think a good gift for the President would be a chocolate |
  `\   revolver. And since he's so busy, you'd probably have to run up |
_o__)              to him real quick and hand it to him.” —Jack Handey |
Ben Finney


Reply to: