From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RFDNF-0006pQ-Tz for garchives@archives.gentoo.org; Sat, 15 Oct 2011 23:10:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7EAD21C034; Sat, 15 Oct 2011 23:10:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7A81C21C034 for ; Sat, 15 Oct 2011 23:10:30 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 041F11B4015 for ; Sat, 15 Oct 2011 23:10:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 046B080042 for ; Sat, 15 Oct 2011 23:10:29 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <5e924b1c0467bdb6f2f9e517780844a07795b9da.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/egencache X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 5e924b1c0467bdb6f2f9e517780844a07795b9da Date: Sat, 15 Oct 2011 23:10:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: fce6babebbc12efaa5f4b833221fc2ff commit: 5e924b1c0467bdb6f2f9e517780844a07795b9da Author: Zac Medico gentoo org> AuthorDate: Sat Oct 15 23:10:18 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Oct 15 23:10:18 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D5e924b1c egencache: add _mtime_ to metadata This fixes a regression in FEATURES=3Dparse-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 files changed, 1 insertions(+), 2 deletions(-) diff --git a/bin/egencache b/bin/egencache index 8d16cd6..22fb1d5 100755 --- a/bin/egencache +++ b/bin/egencache @@ -237,8 +237,7 @@ class GenCache(object): del metadata['EAPI'] try: chf =3D self._trg_cache.validation_chf - if chf !=3D 'mtime': - metadata['_%s_' % chf] =3D getattr(ebuild_hash, chf) + metadata['_%s_' % chf] =3D getattr(ebuild_hash, chf) try: self._trg_cache[cpv] =3D metadata except StatCollision as sc: