1 |
>>>>> On Wed, 12 Aug 2015, Ulrich Mueller wrote: |
2 |
|
3 |
> Hm, how about adding a new PM command like "required_use foo -bar"? |
4 |
> It would be used exclusively in pkg_pretend, and tell the PM to |
5 |
> suggest the necessary package.use changes to the user (or even update |
6 |
> them automatically with the appropriate --autounmask-* option). |
7 |
|
8 |
To clarify, I'm thinking about something like this: |
9 |
|
10 |
pkg_pretend() { |
11 |
if use qt4; then |
12 |
required_use -qt5 |
13 |
else |
14 |
required_use qt5 |
15 |
fi |
16 |
} |
17 |
|
18 |
The advantage would be that any number of elog messages could be added |
19 |
which would further explain things to the user. |
20 |
|
21 |
Ulrich |