Implement new conditional USE dep syntax:
authorZac Medico <zmedico@gentoo.org>
Mon, 28 Jul 2008 05:52:08 +0000 (05:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 28 Jul 2008 05:52:08 +0000 (05:52 -0000)
commit2155c63872a213c4b66aa9a893f8599eebc2e8a6
treed314c9f48038e6a4895b5f80d8260393fc392309
parentcde46b372b6fa08174714f3b3443767528d3cd9c
Implement new conditional USE dep syntax:

Conditional evaluation behavior:

parent state   conditional   result

 x              x?            x
-x              x?
 x             -x?
-x             -x?           -x

 x              x=            x
-x              x=           -x
 x             x!=           -x
-x             x!=            x

Conditional syntax examples:

compact form         equivalent expanded form

 foo[bar?]           foo  bar? (  foo[bar] )
foo[-bar?]           foo !bar? ( foo[-bar] )
 foo[bar=]           foo  bar? (  foo[bar] ) !bar? ( foo[-bar] )
 foo[bar!=]          foo  bar? ( foo[-bar] ) !bar? (  foo[bar] )

svn path=/main/trunk/; revision=11231
pym/portage/dep.py
pym/portage/tests/dep/test_isvalidatom.py