1 |
On Monday 22 September 2008 22:25:20 Petteri Räty wrote: |
2 |
> > If you mean something like |
3 |
> > |
4 |
> > built_with_use cat/foo coolfeature || ewarn "bar will be more useful if you rebuild cat/foo with USE=coolfeature" |
5 |
> > |
6 |
> > then you can use |
7 |
> > |
8 |
> > has_version 'cat/foo[coolfeature]' || ... |
9 |
> > |
10 |
> > instead. |
11 |
> |
12 |
> What does this report if cat/foo does not have coolfeature use flag in |
13 |
> some version? Meaning can this support cases which need --missing true. |
14 |
|
15 |
False. If for instance coolfeature was made optional in >=pv you can use logic |
16 |
like: |
17 |
|
18 |
if has_version '>=cat/foo-pv' && ! has_version 'cat/foo[coolfeature]'; then |
19 |
ewarn '...' |
20 |
fi |
21 |
|
22 |
-- |
23 |
Bo Andresen |