diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-04-28 14:07:08 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-04-28 14:07:08 -0700 |
commit | 593b57110c6f441d03d9ae623de9ff99a2e57905 (patch) | |
tree | 713a7104d6f25088b5bceec32cdff7cd8ff46fd0 | |
parent | ebb887ee7606ec2dd7b266dd3538e68b31ac3a38 (diff) | |
download | portage-593b57110c6f441d03d9ae623de9ff99a2e57905.tar.gz portage-593b57110c6f441d03d9ae623de9ff99a2e57905.tar.bz2 portage-593b57110c6f441d03d9ae623de9ff99a2e57905.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.
-rw-r--r-- | 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 82b1444c5..e0cd0c024 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(): |