From: Zac Medico Date: Sat, 15 Oct 2011 23:10:18 +0000 (-0700) Subject: egencache: add _mtime_ to metadata X-Git-Tag: v2.2.0_alpha68~24 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5e924b1c0467bdb6f2f9e517780844a07795b9da;p=portage.git egencache: add _mtime_ to metadata This fixes a regression in FEATURES=parse-eapi-ebuild-head support for egencache since commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212. If the metadata does not contain _mtime_ here, then _setitem from cache.metadata.database will raise KeyError. --- diff --git a/bin/egencache b/bin/egencache index 8d16cd693..22fb1d5e1 100755 --- a/bin/egencache +++ b/bin/egencache @@ -237,8 +237,7 @@ class GenCache(object): del metadata['EAPI'] try: chf = self._trg_cache.validation_chf - if chf != 'mtime': - metadata['_%s_' % chf] = getattr(ebuild_hash, chf) + metadata['_%s_' % chf] = getattr(ebuild_hash, chf) try: self._trg_cache[cpv] = metadata except StatCollision as sc: