From: Fabian Groffen Date: Wed, 29 Sep 2010 19:07:28 +0000 (+0200) Subject: remove double prefix in LinkageMapELF X-Git-Tag: v2.1.9.13~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4e41255d40f0931907f5c36ba1e9a77929eea7b3;p=portage.git remove double prefix in LinkageMapELF --- diff --git a/pym/portage/util/_dyn_libs/LinkageMapELF.py b/pym/portage/util/_dyn_libs/LinkageMapELF.py index 8993d93f7..6c8f3b441 100644 --- a/pym/portage/util/_dyn_libs/LinkageMapELF.py +++ b/pym/portage/util/_dyn_libs/LinkageMapELF.py @@ -28,7 +28,7 @@ class LinkageMapELF(object): def __init__(self, vardbapi): self._dbapi = vardbapi - self._eroot = self._dbapi._eroot + self._root = self._dbapi.settings['ROOT'] self._libs = {} self._obj_properties = {} self._obj_key_cache = {} @@ -45,14 +45,14 @@ class LinkageMapELF(object): def _path_key(self, path): key = self._path_key_cache.get(path) if key is None: - key = self._ObjectKey(path, self._eroot) + key = self._ObjectKey(path, self._root) self._path_key_cache[path] = key return key def _obj_key(self, path): key = self._obj_key_cache.get(path) if key is None: - key = self._ObjectKey(path, self._eroot) + key = self._ObjectKey(path, self._root) self._obj_key_cache[path] = key return key @@ -149,10 +149,10 @@ class LinkageMapELF(object): """ os = _os_merge - root = self._eroot + root = self._root root_len = len(root) - 1 self._clear_cache() - self._defpath.update(getlibpaths(self._eroot)) + self._defpath.update(getlibpaths(self._root)) libs = self._libs obj_properties = self._obj_properties @@ -604,7 +604,7 @@ class LinkageMapELF(object): # have any consumers. if not isinstance(obj, self._ObjectKey): soname = self._obj_properties[obj_key][3] - master_link = os.path.join(self._eroot, + master_link = os.path.join(self._root, os.path.dirname(obj).lstrip(os.path.sep), soname) try: master_st = os.stat(master_link)