From 5e924b1c0467bdb6f2f9e517780844a07795b9da Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 15 Oct 2011 16:10:18 -0700 Subject: [PATCH] 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. --- bin/egencache | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: -- 2.26.2