On Wed, 12 Aug 2015 19:43:55 +0200 Ulrich Mueller <u...@gentoo.org> wrote: > >>>>> On Wed, 12 Aug 2015, Ulrich Mueller wrote: > > Hm, how about adding a new PM command like "required_use foo -bar"? > > It would be used exclusively in pkg_pretend, and tell the PM to > > suggest the necessary package.use changes to the user (or even > > update them automatically with the appropriate --autounmask-* > > option). > > To clarify, I'm thinking about something like this: > > pkg_pretend() { > if use qt4; then > required_use -qt5 > else > required_use qt5 > fi > } > > The advantage would be that any number of elog messages could be added > which would further explain things to the user.
And how would the PM understand that -qt5 is conditional upon qt4? Such knowledge is required if it's supposed to auto-resolve stuff... -- Ciaran McCreesh
signature.asc
Description: PGP signature