On Wed, 19 Oct 2011 11:53:07 -0700 Brian Harring <ferri...@gmail.com> wrote:
> On Wed, Oct 19, 2011 at 02:05:50PM -0400, Mike Frysinger wrote: > > i wrote a new func for toolchain.eclass: huse. this is because the > > toolchain.eclass supports multiple versions in parallel, and the > > IUSE value can vary greatly between them. so doing `use foo` > > without checking IUSE first doesn't work. since i got a request to > > use this in other eclasses (for the same reason), i figured i'd > > move it to eutils.eclass so more people can benefit. > > > > now that we have "in_iuse" in eutils.eclass (with all the caveats), > > i'll be adding huse: > > huse() { > > in_iuse $1 || return 1 > > use $1 > > } > > > > any comments before i publish ? > > Call it safe_use. Maybe something off 'default' instead? It could be made a little like USE defaults, falling back to the default value when USE isn't declared. -- Best regards, Michał Górny
signature.asc
Description: PGP signature