# apparently this user isn't allowed to access PRIVATE_PATH
self._plib_registry = None
- self.linkmap = LinkageMap(self)
+ self._linkmap = LinkageMap(self)
self._owners = self._owners_db(self)
def getpath(self, mykey, filename=None):
def _linkmap_rebuild(self, **kwargs):
"""
- Rebuild the self.linkmap if it's not broken due to missing
+ Rebuild the self._linkmap if it's not broken due to missing
scanelf binary. Also, return early if preserve-libs is disabled
and the preserve-libs registry is empty.
"""
not self.vartree.dbapi._plib_registry.hasEntries()):
return
try:
- self.vartree.dbapi.linkmap.rebuild(**kwargs)
+ self.vartree.dbapi._linkmap.rebuild(**kwargs)
except CommandNotFound as e:
self._linkmap_broken = True
self._display_merge(_("!!! Disabling preserve-libs " \
return None
os = _os_merge
- linkmap = self.vartree.dbapi.linkmap
+ linkmap = self.vartree.dbapi._linkmap
installed_instance = self._installed_instance
old_contents = installed_instance.getcontents()
root = self._eroot
path_node_map[path] = node
return node
- linkmap = self.vartree.dbapi.linkmap
+ linkmap = self.vartree.dbapi._linkmap
for cpv, plibs in plib_dict.items():
for f in plibs:
path_cpv_map[f] = cpv
lib_graph.add(preserved_node, None)
preserved_paths.add(f)
preserved_nodes.add(preserved_node)
- for c in self.vartree.dbapi.linkmap.findConsumers(f):
+ for c in self.vartree.dbapi._linkmap.findConsumers(f):
consumer_node = path_to_node(c)
if not consumer_node.file_exists():
continue
dblnk._clear_contents_cache()
self._clear_contents_cache()
- linkmap = self.vartree.dbapi.linkmap
+ linkmap = self.vartree.dbapi._linkmap
self._linkmap_rebuild(include_file=os.path.join(inforoot,
linkmap._needed_aux_key))
finally:
self.settings.pop('REPLACING_VERSIONS', None)
- self.vartree.dbapi.linkmap._clear_cache()
+ self.vartree.dbapi._linkmap._clear_cache()
self.unlockdb()
self.vartree.dbapi._bump_mtime(self.mycpv)
return retval
return retval
return os.EX_OK
finally:
- vartree.dbapi.linkmap._clear_cache()
+ vartree.dbapi._linkmap._clear_cache()
mylink.unlockdb()
def write_contents(contents, root, f):
def load(self):
consumers = set()
for lib in self.files:
- consumers.update(self.dbapi.linkmap.findConsumers(lib))
+ consumers.update(self.dbapi._linkmap.findConsumers(lib))
if not consumers:
return
for lib in libs:
if self.debug:
print(lib)
- for x in sorted(self.dbapi.linkmap.findConsumers(lib)):
+ for x in sorted(self.dbapi._linkmap.findConsumers(lib)):
print(" ", x)
print("-"*40)
- consumers.update(self.dbapi.linkmap.findConsumers(lib))
+ consumers.update(self.dbapi._linkmap.findConsumers(lib))
# Don't rebuild packages just because they contain preserved
# libs that happen to be consumers of other preserved libs.
for libs in plib_dict.values():