Use SlotDict where appropriate in binarytree._populate().
authorZac Medico <zmedico@gentoo.org>
Wed, 25 Jun 2008 23:10:28 +0000 (23:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 25 Jun 2008 23:10:28 +0000 (23:10 -0000)
svn path=/main/trunk/; revision=10796

pym/portage/dbapi/bintree.py

index b3c36a23b44e19f37e49b352f4a0dbac8bec7ccd..9b470cf6003c6d3028229a405df1f7c4e072624f 100644 (file)
@@ -478,7 +478,7 @@ class binarytree(object):
                                                                        update_pkgindex = True
                                                        self.dbapi.cpv_inject(mycpv)
                                                        if not self.dbapi._aux_cache_keys.difference(d):
-                                                               aux_cache = {}
+                                                               aux_cache = self.dbapi._aux_cache_slot_dict()
                                                                for k in self.dbapi._aux_cache_keys:
                                                                        aux_cache[k] = d[k]
                                                                self.dbapi._aux_cache[mycpv] = aux_cache
@@ -575,7 +575,7 @@ class binarytree(object):
                                                d.pop("PATH", None)
                                        metadata[mycpv] = d
                                        if not self.dbapi._aux_cache_keys.difference(d):
-                                               aux_cache = {}
+                                               aux_cache = self.dbapi._aux_cache_slot_dict()
                                                for k in self.dbapi._aux_cache_keys:
                                                        aux_cache[k] = d[k]
                                                self.dbapi._aux_cache[mycpv] = aux_cache