From: Zac Medico Date: Tue, 11 Apr 2006 19:59:08 +0000 (-0000) Subject: Fix LazyDatabasesDict so that databases only need to be created once. X-Git-Tag: v2.1_pre9~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7908fd64c4fcc42155205792d501e113b5def560;p=portage.git Fix LazyDatabasesDict so that databases only need to be created once. svn path=/main/trunk/; revision=3131 --- diff --git a/pym/portage.py b/pym/portage.py index 9e5ebc4a8..e986b4c92 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6829,6 +6829,7 @@ class LazyDatabasesDict(dict): # The binarytree likely needs to be populated now, so we # do it now to make sure that all method calls are safe. myvalue.populate() + self[item_key] = myvalue return myvalue return dict.__getitem__(self, item_key)