From: Zac Medico Date: Sat, 22 Nov 2008 03:51:45 +0000 (-0000) Subject: Make sure the dict returned from _parse_data() contains all of _known_keys. X-Git-Tag: v2.2_rc15~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bba07b80ba3e86bd3dcbc0eb5edc50fb95d7188f;p=portage.git Make sure the dict returned from _parse_data() contains all of _known_keys. svn path=/main/trunk/; revision=12028 --- diff --git a/pym/portage/cache/metadata.py b/pym/portage/cache/metadata.py index c3c83a019..164761adb 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