summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-07 21:55:51 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-07 21:55:51 +0000
commite32ddbb0b19dbe110faee7f516756e3753cdb270 (patch)
tree638ce80613ec18138d8e319df6b33949e0cd038c /pym
parentc9b0888ba71b5d740075ff998fb8574a8d704592 (diff)
downloadportage-e32ddbb0b19dbe110faee7f516756e3753cdb270.tar.gz
portage-e32ddbb0b19dbe110faee7f516756e3753cdb270.tar.bz2
portage-e32ddbb0b19dbe110faee7f516756e3753cdb270.zip
Share the same config instance between portagetree and portdbapi instances since clone isn't needed here. Also, trigger population of virtuals prior to cloning in emerge. This reduces the number of times the virtuals are populated from 3 to just 1.
svn path=/main/trunk/; revision=5206
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
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"