On Mon, 12 Mar 2012 00:08:46 -0700
Zac Medico <[email protected]> wrote:

> On 03/11/2012 11:50 PM, Kent Fredric wrote:
> > #!/usr/bin/env eapi-xml-5
> > 
> > would send the current file ( foo.ebuild ) to the process
> > "eapi-xml-5" ( as defined by the current $PATH setting )
> 
> All we need is a way for the package manager to probe the EAPI.
> Spawning a process to do that is just overkill.

And we could just use a good regex for that instead.

Something like: [eE][aA][pP][iI] <whitespace-or-symbols> [a-z0-9-+]+

and just require users for this to be the first thing declared in
an ebuild. Of course, this could make problems with stuff like:

# EAPI 4 because of foobarbaz
EAPI=4

(on the other hand, in this particular case it will fetch '4' anyway).

And this will work as well with:

<eapi>15-xml</eapi>

and

- eapi: 15-yaml

-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: PGP signature

Reply via email to