From bba07b80ba3e86bd3dcbc0eb5edc50fb95d7188f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 22 Nov 2008 03:51:45 +0000 Subject: [PATCH] Make sure the dict returned from _parse_data() contains all of _known_keys. svn path=/main/trunk/; revision=12028 --- pym/portage/cache/metadata.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.26.2