summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/flat_hash.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-09-25 23:13:52 +0000
committerZac Medico <zmedico@gentoo.org>2008-09-25 23:13:52 +0000
commit1218a395d78b0085e4eb7d11fbcb20314586de9e (patch)
tree114f42c34fa91ff276b12bbea514fc13f5275569 /pym/portage/cache/flat_hash.py
parent396d3b8bb373f0d9b8c0d1dcfabcd46695f72dc5 (diff)
downloadportage-1218a395d78b0085e4eb7d11fbcb20314586de9e.tar.gz
portage-1218a395d78b0085e4eb7d11fbcb20314586de9e.tar.bz2
portage-1218a395d78b0085e4eb7d11fbcb20314586de9e.zip
Ensure that cache modules always return a dict containing the _eclasses_
key. svn path=/main/trunk/; revision=11547
Diffstat (limited to 'pym/portage/cache/flat_hash.py')
-rw-r--r--pym/portage/cache/flat_hash.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/cache/flat_hash.py b/pym/portage/cache/flat_hash.py
index ed1eebd12..40ad51eb6 100644
--- a/pym/portage/cache/flat_hash.py
+++ b/pym/portage/cache/flat_hash.py
@@ -46,6 +46,8 @@ class database(fs_template.FsBased):
raise cache_errors.CacheCorruption(cpv, e)
if "_eclasses_" in d:
d["_eclasses_"] = reconstruct_eclasses(cpv, d["_eclasses_"])
+ else:
+ d["_eclasses_"] = {}
return d
for x in self._known_keys: