summaryrefslogtreecommitdiffstats
path: root/pym/portage/sets/libs.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/sets/libs.py')
-rw-r--r--pym/portage/sets/libs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/sets/libs.py b/pym/portage/sets/libs.py
index b20acebf0..74c16a129 100644
--- a/pym/portage/sets/libs.py
+++ b/pym/portage/sets/libs.py
@@ -60,6 +60,9 @@ class LibraryFileConsumerSet(LibraryConsumerSet):
class PreservedLibraryConsumerSet(LibraryConsumerSet):
def load(self):
reg = self.dbapi._plib_registry
+ if reg is None:
+ # preserve-libs is entirely disabled
+ return
consumers = set()
if reg:
plib_dict = reg.getPreservedLibs()