summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-04-28 14:07:08 -0700
committerZac Medico <zmedico@gentoo.org>2011-05-04 12:34:07 -0700
commit329564d1ecaff96f894283200906c2c22a1ede7e (patch)
treee9e8cec4fca7a3f7efb96d6e40c00ae8087f9899 /pym
parent3258a23b517ab5130c151af5e96ec6445ca97174 (diff)
downloadportage-329564d1ecaff96f894283200906c2c22a1ede7e.tar.gz
portage-329564d1ecaff96f894283200906c2c22a1ede7e.tar.bz2
portage-329564d1ecaff96f894283200906c2c22a1ede7e.zip
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.
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index fa8355616..7d7fee2af 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
- # 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()
if vardbapi._plib_registry.hasEntries():