diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-02-07 03:43:06 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-07 16:53:00 -0800 |
commit | f0ed96b6459746669adc880730c5e339f3851772 (patch) | |
tree | 28e624170f336858a2d3ffa4c92dfb9bd74b7972 | |
parent | 71dc688daeb65996708620d78080607a123a5be1 (diff) | |
download | portage-f0ed96b6459746669adc880730c5e339f3851772.tar.gz portage-f0ed96b6459746669adc880730c5e339f3851772.tar.bz2 portage-f0ed96b6459746669adc880730c5e339f3851772.zip |
expand_new_virtuals: fix logic from prev commit
We need to evaluate conditionals for dependency matching purposes,
though the unevaluated atom will still be available later for other
purposes.
-rw-r--r-- | pym/portage/dep/dep_check.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/dep/dep_check.py b/pym/portage/dep/dep_check.py index 3381af9ca..da9b4e540 100644 --- a/pym/portage/dep/dep_check.py +++ b/pym/portage/dep/dep_check.py @@ -123,7 +123,11 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/", virt_atom = '=' + pkg.cpv if x.unevaluated_atom.use: virt_atom += str(x.unevaluated_atom.use) - virt_atom = Atom(virt_atom) + virt_atom = Atom(virt_atom) + virt_atom = virt_atom.evaluate_conditionals( + pkg_use_enabled(graph_parent)) + else: + virt_atom = Atom(virt_atom) # According to GLEP 37, RDEPEND is the only dependency # type that is valid for new-style virtuals. Repoman # should enforce this. |