checking for swig variants in a pre-fetch hook

Adam Mercer ram at macports.org
Fri Jul 4 08:36:48 PDT 2008


On Fri, Jul 4, 2008 at 10:23 AM, Joshua Root <jmr at macports.org> wrote:

Josh

> Ah, sorry, I forgot that glob errors if nothing matches. Add -nocomplain:
>
> if {![llen [glob -nocomplain ${prefix}/share/swig/*/python/python.swg]]}

Still not working quite right, the error is now:

--->  Fetching py25-scipy
Error: Target org.macports.fetch returned: invalid command name "llen"
Error: Status 1 encountered during processing.

removing the -nocomplain flag results in the previous error.

Cheers

Adam


More information about the macports-dev mailing list