Fix LazyDatabasesDict so that databases only need to be created once.
authorZac Medico <zmedico@gentoo.org>
Tue, 11 Apr 2006 19:59:08 +0000 (19:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 11 Apr 2006 19:59:08 +0000 (19:59 -0000)
svn path=/main/trunk/; revision=3131

pym/portage.py

index 9e5ebc4a8cd4a3091ca6219f8c9abc0dd8c8c51c..e986b4c92f6165c0bb1851fa2a06f48a187eefca 100644 (file)
@@ -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)