diff options
Diffstat (limited to 'pym/_emerge')
-rw-r--r-- | pym/_emerge/actions.py | 3 | ||||
-rw-r--r-- | pym/_emerge/help.py | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 007984eea..215203a2f 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -907,7 +907,8 @@ def calc_depclean(settings, trees, ldpath_mtimes, if cleanlist and \ real_vardb._linkmap is not None and \ - myopts.get('--depclean-lib-check') != 'n': + myopts.get("--depclean-lib-check") != "n" and \ + "preserve-libs" not in settings.features: # Check if any of these packages are the sole providers of libraries # with consumers that have not been selected for removal. If so, these diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py index 9de6aade7..46b29eca7 100644 --- a/pym/_emerge/help.py +++ b/pym/_emerge/help.py @@ -419,7 +419,10 @@ def help(myopts, havecolor=1): desc = "Account for library link-level dependencies during " + \ "--depclean and --prune actions. This " + \ "option is enabled by default. In some cases this can " + \ - "be somewhat time-consuming." + "be somewhat time-consuming. This option is ignored " + \ + "when FEATURES=\"preserve-libs\" is enabled in " + \ + "make.conf(5), since any libraries that have " + \ + "consumers will simply be preserved." for line in wrap(desc, desc_width): print(desc_indent + line) print() |