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 1QHiKf-0003mk-5s for garchives@archives.gentoo.org; Wed, 04 May 2011 20:06:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36DAB1C039; Wed, 4 May 2011 20:03:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id F35E21C03B for ; Wed, 4 May 2011 20:03:33 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6FC432AC01B for ; Wed, 4 May 2011 20:03:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CBD8E80509 for ; Wed, 4 May 2011 20:03:31 +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: <329564d1ecaff96f894283200906c2c22a1ede7e.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:2.1.9 commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/main.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 329564d1ecaff96f894283200906c2c22a1ede7e Date: Wed, 4 May 2011 20:03:31 +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: e315bdb95be463cc4d5e4a01c2993657 commit: 329564d1ecaff96f894283200906c2c22a1ede7e Author: Zac Medico gentoo org> AuthorDate: Thu Apr 28 21:07:08 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed May 4 19:34:07 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D329564d1 display_preserved_libs: load plib_registry Since commit 7535cabdf2fab76fc55df83643157613dfd66be9, the plib_registry is modified in a subprocess, and the parent process' copy can become stale because of this. Therefore, explicitly load it. --- pym/_emerge/main.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index fa83556..7d7fee2 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -217,7 +217,9 @@ def display_preserved_libs(vardbapi, myopts): # preserve-libs is entirely disabled return =20 - # Ensure the registry is consistent with existing files. + # Explicitly load and prune the PreservedLibsRegistry in order + # to ensure that we do not display stale data. + vardbapi._plib_registry.load() vardbapi._plib_registry.pruneNonExisting() =20 if vardbapi._plib_registry.hasEntries():