projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3258a23
)
display_preserved_libs: load plib_registry
author
Zac Medico
<zmedico@gentoo.org>
Thu, 28 Apr 2011 21:07:08 +0000
(14:07 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 4 May 2011 19:34:07 +0000
(12:34 -0700)
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
patch
|
blob
|
history
diff --git
a/pym/_emerge/main.py
b/pym/_emerge/main.py
index fa83556160aac2bfa0ba02c6507febbf1c95f22d..7d7fee2af724d42b6ed64ec74fe59404631ba2d9 100644
(file)
--- 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():