From 8954c253e23261ff3674a96bc02ea7c4487c138b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 7 Feb 2011 16:42:37 -0800 Subject: [PATCH] expand_new_virtuals: handle None for myuse --- pym/portage/dep/dep_check.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pym/portage/dep/dep_check.py b/pym/portage/dep/dep_check.py index 9373ecbbc..ca656019d 100644 --- a/pym/portage/dep/dep_check.py +++ b/pym/portage/dep/dep_check.py @@ -125,7 +125,11 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/", virt_atom += str(x.unevaluated_atom.use) virt_atom = Atom(virt_atom) if graph_parent is None: - virt_atom = virt_atom.evaluate_conditionals(myuse) + if myuse is None: + virt_atom = virt_atom.evaluate_conditionals( + mysettings.get("PORTAGE_USE", "").split()) + else: + virt_atom = virt_atom.evaluate_conditionals(myuse) else: virt_atom = virt_atom.evaluate_conditionals( pkg_use_enabled(graph_parent)) -- 2.26.2