summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-25 23:10:28 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-25 23:10:28 +0000
commitd6b64ea06ff357b920b24a75f2c5ddf03674190d (patch)
tree179d492283c3576f1832cea546e2af4eef06e2e2 /pym
parentFix typo. (diff)
downloadportage-idfetch-d6b64ea06ff357b920b24a75f2c5ddf03674190d.tar.gz
portage-idfetch-d6b64ea06ff357b920b24a75f2c5ddf03674190d.tar.bz2
portage-idfetch-d6b64ea06ff357b920b24a75f2c5ddf03674190d.zip
Use SlotDict where appropriate in binarytree._populate().
svn path=/main/trunk/; revision=10796
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/bintree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index b3c36a23..9b470cf6 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -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