summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dbapi/vartree.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index eacada6b3..b3e6f6a62 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -2476,7 +2476,10 @@ class dblink(object):
continue
if have_lib:
- preserve_paths.update(preserve_node.alt_paths)
+ # There's no point in preserving the "master" symlink, since
+ # the soname symlink is all that's strictly required.
+ preserve_paths.update(f for f in preserve_node.alt_paths
+ if not linkmap.isMasterLink(f))
return preserve_paths