On Wed, 12 Aug 2015 20:00:42 +0200
Ulrich Mueller <u...@gentoo.org> wrote:
> >>>>> On Wed, 12 Aug 2015, Ciaran McCreesh wrote:
> >> pkg_pretend() {
> >>     if use qt4; then
> >>         required_use -qt5
> >>     else
> >>         required_use qt5
> >>     fi
> >> }
> 
> > And how would the PM understand that -qt5 is conditional upon qt4?
> > Such knowledge is required if it's supposed to auto-resolve stuff...
> 
> Right, the above was too simple (and wrong). It should have been:
> 
> pkg_pretend() {
>     use qt4 && use qt5 && required_use -qt5
>     use qt4 || use qt5 || required_use qt4
> }

Doesn't help the PM, unless you're expecting it to parse bash code...

-- 
Ciaran McCreesh

Attachment: signature.asc
Description: PGP signature

Reply via email to