From: Zac Medico Date: Mon, 17 Nov 2008 23:40:04 +0000 (-0000) Subject: Store the _eclasses_ field instead of INHERITED. X-Git-Tag: v2.2_rc15~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a5be64b4d14817f6ee685829b827e884fd28a7b8;p=portage.git Store the _eclasses_ field instead of INHERITED. svn path=/main/trunk/; revision=11986 --- 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)