summaryrefslogtreecommitdiffstats
path: root/bin/egencache
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-15 16:10:18 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-15 16:10:18 -0700
commit5e924b1c0467bdb6f2f9e517780844a07795b9da (patch)
treec1c590cfc29c8f04c0e9f0ba54ec4650ac120292 /bin/egencache
parent0a60f0a859994ca2ed51aa0b20454743f970b956 (diff)
downloadportage-5e924b1c0467bdb6f2f9e517780844a07795b9da.tar.gz
portage-5e924b1c0467bdb6f2f9e517780844a07795b9da.tar.bz2
portage-5e924b1c0467bdb6f2f9e517780844a07795b9da.zip
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.
Diffstat (limited to 'bin/egencache')
-rwxr-xr-xbin/egencache3
1 files changed, 1 insertions, 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: