1 |
On Wed, Oct 19, 2011 at 02:05:50PM -0400, Mike Frysinger wrote: |
2 |
> i wrote a new func for toolchain.eclass: huse. this is because the |
3 |
> toolchain.eclass supports multiple versions in parallel, and the IUSE value |
4 |
> can vary greatly between them. so doing `use foo` without checking IUSE first |
5 |
> doesn't work. since i got a request to use this in other eclasses (for the |
6 |
> same reason), i figured i'd move it to eutils.eclass so more people can benefit. |
7 |
> |
8 |
> now that we have "in_iuse" in eutils.eclass (with all the caveats), i'll be |
9 |
> adding huse: |
10 |
> huse() { |
11 |
> in_iuse $1 || return 1 |
12 |
> use $1 |
13 |
> } |
14 |
> |
15 |
> any comments before i publish ? |
16 |
|
17 |
Call it safe_use. |
18 |
~brian |