Hi,

Zac Medico <[EMAIL PROTECTED]>:
> David Leverton wrote:
> > 2008/9/4 Zac Medico <[EMAIL PROTECTED]>:
> >>  * The 'unpack' helper function recognizes ;sf=tbz2 and ;sf=tgz
> >>   extensions, for interoperability with gitweb.
> >>
> >>  * SRC_URI supports a syntax extension which allows customization
> >>   of output file names by using a "->" operator.
> > 
> > Is it useful to have both of these?  The former seems awfully
> > specialised for a general format like ebuilds, and can be replaced
> > with
> > 
> >     COMMIT="1234..."
> >     
> > SRC_URI="http://git.example.org/?p=foo.git;a=snapshot;h=${COMMIT};sf=tbz2
> > -> foo-${COMMIT}.tar.bz2"
> 
> Both approaches are essentially equivalent but it's a little simpler
> for ebuild writer if they don't have to customize the output file
> name.

 One needs exceptions for all kind of systems, for example I had to
workaround Trac which adds ?format=raw to a tarball URI.  There seems
to be a solution in Trac as the guys from fedarahosted fixed the two I
needed (tmpwatch, mlocate).  So the -> operator is quite useful and I
agree with David that the functionality is doubled.

V-Li

-- 
Christian Faulhammer, Gentoo Lisp project
<URL:http://www.gentoo.org/proj/en/lisp/>, #gentoo-lisp on FreeNode

<URL:http://www.faulhammer.org/>

Attachment: signature.asc
Description: PGP signature

Reply via email to