1 |
On Wed, 12 Aug 2015 19:43:55 +0200 |
2 |
Ulrich Mueller <ulm@g.o> wrote: |
3 |
> >>>>> On Wed, 12 Aug 2015, Ulrich Mueller wrote: |
4 |
> > Hm, how about adding a new PM command like "required_use foo -bar"? |
5 |
> > It would be used exclusively in pkg_pretend, and tell the PM to |
6 |
> > suggest the necessary package.use changes to the user (or even |
7 |
> > update them automatically with the appropriate --autounmask-* |
8 |
> > option). |
9 |
> |
10 |
> To clarify, I'm thinking about something like this: |
11 |
> |
12 |
> pkg_pretend() { |
13 |
> if use qt4; then |
14 |
> required_use -qt5 |
15 |
> else |
16 |
> required_use qt5 |
17 |
> fi |
18 |
> } |
19 |
> |
20 |
> The advantage would be that any number of elog messages could be added |
21 |
> which would further explain things to the user. |
22 |
|
23 |
And how would the PM understand that -qt5 is conditional upon qt4? Such |
24 |
knowledge is required if it's supposed to auto-resolve stuff... |
25 |
|
26 |
-- |
27 |
Ciaran McCreesh |