On Thu, 27 Sep 2012 10:23:50 -0700
Zac Medico <[email protected]> wrote:
> Something like this would work with current versions of portage:
> 
> if ! declare -F usex >/dev/null ; then
>       usex() { use "$1" && echo "${2-yes}$4" || echo "${3-no}$5" ; }
> fi
> 
> However, it's probably not a good idea to assume that the package
> manager defines usex prior to sourcing the eclass.

It's also not a good idea to assume that usex is a function.

-- 
Ciaran McCreesh

Attachment: signature.asc
Description: PGP signature

Reply via email to