1 |
Paul Bredbury wrote: |
2 |
>> ive changed built_with_use to call 'die' if it is unable to locate the USE |
3 |
>> file (aka the package is not installed) |
4 |
>> -mike |
5 |
> |
6 |
> If the package is not installed (taking into consideration |
7 |
> package.provided also), then built_with_use should return *False*. |
8 |
> |
9 |
> How can a package be built_with_use anything if it's not installed? |
10 |
> You're saying that in this situation the answer is "unknown". I'm saying |
11 |
> that it's logically impossible for the answer to be True, therefore the |
12 |
> answer is False. There is no third option, because it's a Boolean |
13 |
> function. |
14 |
|
15 |
Tell that to python. When you call a function that only returns True or False, |
16 |
it's also possible for it to raise an Exception. This is pretty close to what |
17 |
'die' does. If an ebuild is calling built_with_use on a package that isn't |
18 |
installed, something is very wrong. |
19 |
|
20 |
-- |
21 |
Andrew Gaffney http://dev.gentoo.org/~agaffney/ |
22 |
Gentoo Linux Developer Installer Project |
23 |
-- |
24 |
gentoo-portage-dev@g.o mailing list |