summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge2
-rw-r--r--pym/portage.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index ba2f8de8f..44a9a6f80 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -752,6 +752,8 @@ class depgraph:
self.trees[myroot][tree] = trees[myroot][tree]
self.trees[myroot]["vartree"] = \
FakeVartree(trees[myroot]["vartree"])
+ # Make sure the virtuals are populated before cloning.
+ trees[myroot]["vartree"].settings.getvirtuals()
self.pkgsettings[myroot] = portage.config(
clone=self.trees[myroot]["vartree"].settings)
self.pkg_node_map[myroot] = {}
diff --git a/pym/portage.py b/pym/portage.py
index 61bffdc96..9881d227d 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4264,7 +4264,7 @@ class portagetree:
self.portroot=settings["PORTDIR"]
self.virtual=virtual
self.dbapi = portdbapi(
- settings["PORTDIR"], mysettings=config(clone=settings))
+ settings["PORTDIR"], mysettings=settings)
def dep_bestmatch(self,mydep):
"compatibility method"