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 1RKFw5-0000ol-BE for garchives@archives.gentoo.org; Sat, 29 Oct 2011 20:55:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 954A821C028; Sat, 29 Oct 2011 20:55:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 618DF21C028 for ; Sat, 29 Oct 2011 20:55:17 +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 9BD551B4006 for ; Sat, 29 Oct 2011 20:55:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 11BC080042 for ; Sat, 29 Oct 2011 20:55:16 +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: Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/actions.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: d6bce25590c9b351fe833056a89c1dd0fc91ba47 Date: Sat, 29 Oct 2011 20:55:16 +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: 9e4c1f84f878218c330a77fce5dfad63 commit: d6bce25590c9b351fe833056a89c1dd0fc91ba47 Author: Zac Medico gentoo org> AuthorDate: Sat Oct 29 20:55:07 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Oct 29 20:55:07 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Dd6bce255 action_metadata: use auxdbkeys to compare entries This borrows the approach that egencache uses since commit 0e120da008c9d0d41c9372c81145c6e153028a6d. --- pym/_emerge/actions.py | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 610a6c4..6ccf894 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1779,13 +1779,7 @@ def action_metadata(settings, portdb, myopts, port= trees=3DNone): # We don't want to skip the write unless we're really # sure that the existing cache is identical, so don't # trust _mtime_ and _eclasses_ alone. - keys =3D set() - keys.update(src) - keys.update(dest) - keys.discard('_eclasses_') - keys.discard('_mtime_') - keys.discard(src_chf_key) - for k in keys: + for k in auxdbkeys: if dest.get(k, '') !=3D src.get(k, ''): dest =3D None break