summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-08 10:54:51 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-08 12:46:05 -0800
commitad5e303de8c4da3f38de7e2489b1a1e811165c36 (patch)
treec2fb499a1c0b0dcfa29e84c9fbe1f9527856cc4a
parentdf5e3aad0149419ef6c40adee85fbf3ec9aa1edc (diff)
downloadportage-ad5e303de8c4da3f38de7e2489b1a1e811165c36.tar.gz
portage-ad5e303de8c4da3f38de7e2489b1a1e811165c36.tar.bz2
portage-ad5e303de8c4da3f38de7e2489b1a1e811165c36.zip
expand_new_virtuals: fix pkg_use_enabled call
AttributeError: 'tuple' object has no attribute 'use'
-rw-r--r--pym/portage/dep/dep_check.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/dep/dep_check.py b/pym/portage/dep/dep_check.py
index ca656019d..6d2d99d35 100644
--- a/pym/portage/dep/dep_check.py
+++ b/pym/portage/dep/dep_check.py
@@ -36,10 +36,10 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
if parent is not None:
if virt_parent is not None:
graph_parent = virt_parent
- eapi = virt_parent[0].metadata['EAPI']
+ parent = virt_parent[0]
else:
graph_parent = parent
- eapi = parent.metadata["EAPI"]
+ eapi = parent.metadata["EAPI"]
repoman = not mysettings.local_config
if kwargs["use_binaries"]:
portdb = trees[myroot]["bintree"].dbapi
@@ -124,7 +124,7 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
if x.unevaluated_atom.use:
virt_atom += str(x.unevaluated_atom.use)
virt_atom = Atom(virt_atom)
- if graph_parent is None:
+ if parent is None:
if myuse is None:
virt_atom = virt_atom.evaluate_conditionals(
mysettings.get("PORTAGE_USE", "").split())
@@ -132,7 +132,7 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
virt_atom = virt_atom.evaluate_conditionals(myuse)
else:
virt_atom = virt_atom.evaluate_conditionals(
- pkg_use_enabled(graph_parent))
+ pkg_use_enabled(parent))
else:
virt_atom = Atom(virt_atom)
# According to GLEP 37, RDEPEND is the only dependency