From: Zac Medico Date: Sat, 22 Nov 2008 03:53:01 +0000 (-0000) Subject: Make sure the dict returned from _parse_data() contains all of _known_keys. X-Git-Tag: v2.1.6_rc1~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a431dafea0394de9fba8ac48e5e9e5f4dd47ddd8;p=portage.git Make sure the dict returned from _parse_data() contains all of _known_keys. (trunk r12028) svn path=/main/branches/2.1.6/; revision=12029 --- 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