summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-22 03:51:45 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-22 03:51:45 +0000
commitbba07b80ba3e86bd3dcbc0eb5edc50fb95d7188f (patch)
tree4eb282e4971de448c918f38c68ecca79f9db36b8
parentAdd missing '%' symbol (for binary package moves) to the key that's displayed (diff)
downloadportage-multirepo-bba07b80ba3e86bd3dcbc0eb5edc50fb95d7188f.tar.gz
portage-multirepo-bba07b80ba3e86bd3dcbc0eb5edc50fb95d7188f.tar.bz2
portage-multirepo-bba07b80ba3e86bd3dcbc0eb5edc50fb95d7188f.zip
Make sure the dict returned from _parse_data() contains all of _known_keys.
svn path=/main/trunk/; revision=12028
-rw-r--r--pym/portage/cache/metadata.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/cache/metadata.py b/pym/portage/cache/metadata.py
index c3c83a01..164761ad 100644
--- a/pym/portage/cache/metadata.py
+++ b/pym/portage/cache/metadata.py
@@ -64,6 +64,9 @@ class database(flat_hash.database):
# because it calls reconstruct_eclasses() internally.
d["_eclasses_"] = reconstruct_eclasses(None, d["_eclasses_"])
+ for x in self._known_keys:
+ d.setdefault(x, '')
+
return d