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

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



On Sun, 2009-03-15 at 18:15 -0700, Russ Allbery wrote:
> Manoj Srivastava <srivasta@debian.org> writes:
> 
> >         Given that we already have a tool that can download upstream
> >  sources, with or without mangling, and can be used by facilities
> >  outside of the unpacked Debian source package to determine if there was
> >  new versions and to download unmangled versions, is there any need to
> >  retain the get-orig-source target at all?
> 
> I had no idea that uscan could do this.  I think this is a cleaner
> solution to most of my problems.
> 
> However, I don't think this helps with the original problem on the thread
> where upstream uses only a VCS.  I think that's a bad idea, but some
> upstreams do it, and right now uscan doesn't handle that sort of case (and
> it's rather outside its current purpose).

Sure it does:

# 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...

Ben.

-- 
Ben Hutchings
Absolutum obsoletum. (If it works, it's out of date.) - Stafford Beer

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: