From: Zac Medico Date: Mon, 17 Nov 2008 23:41:17 +0000 (-0000) Subject: Store the _eclasses_ field instead of INHERITED. (trunk r11986) X-Git-Tag: v2.1.6_rc1~42 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0d1a4f6327037cb58017594c983bdc73ce8c591f;p=portage.git Store the _eclasses_ field instead of INHERITED. (trunk r11986) svn path=/main/branches/2.1.6/; revision=11987 --- diff --git a/pym/portage/cache/metadata.py b/pym/portage/cache/metadata.py index 7951e0302..1c65ee8be 100644 --- a/pym/portage/cache/metadata.py +++ b/pym/portage/cache/metadata.py @@ -78,12 +78,4 @@ class database(flat_hash.database): def _setitem(self, cpv, values): - values = ProtectedDict(values) - - # hack. proper solution is to make this a __setitem__ override, since template.__setitem__ - # serializes _eclasses_, then we reconstruct it. - if "_eclasses_" in values: - values["INHERITED"] = ' '.join(reconstruct_eclasses(cpv, values["_eclasses_"]).keys()) - del values["_eclasses_"] - flat_hash.database._setitem(self, cpv, values)