summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-07 03:11:08 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-07 16:52:54 -0800
commit71dc688daeb65996708620d78080607a123a5be1 (patch)
tree838e52c979a3f4b7843578e7a4635ab2a5e8fb66 /pym
parentad0f4abd188e3ba183f2ebd80eb23e1a7e919ed6 (diff)
downloadportage-71dc688daeb65996708620d78080607a123a5be1.tar.gz
portage-71dc688daeb65996708620d78080607a123a5be1.tar.bz2
portage-71dc688daeb65996708620d78080607a123a5be1.zip
expand_new_virtuals: save atom unevaluated use
This leads to a better unsatisfied USE message than the one reported in bug 353933, comment #3. TODO: Fix it so that these generated atoms don't break depgraph._get_dep_chain(), due to not being identical to the original atoms and therefore breaking extract_affecting_use().
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dep/dep_check.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dep/dep_check.py b/pym/portage/dep/dep_check.py
index cd740cda3..3381af9ca 100644
--- a/pym/portage/dep/dep_check.py
+++ b/pym/portage/dep/dep_check.py
@@ -121,8 +121,8 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
a = []
for pkg in pkgs:
virt_atom = '=' + pkg.cpv
- if x.use:
- virt_atom += str(x.use)
+ if x.unevaluated_atom.use:
+ virt_atom += str(x.unevaluated_atom.use)
virt_atom = Atom(virt_atom)
# According to GLEP 37, RDEPEND is the only dependency
# type that is valid for new-style virtuals. Repoman