from portage import _unicode_decode
from portage.cache.cache_errors import CacheError
from portage.const import GLOBAL_CONFIG_PATH, NEWS_LIB_PATH
+from portage.const import _ENABLE_DYN_LINK_MAP
from portage.dbapi.dep_expand import dep_expand
from portage.output import blue, bold, colorize, create_color_func, darkgreen, \
red, yellow
# specific packages.
msg = []
+ if not _ENABLE_DYN_LINK_MAP:
+ msg.append("Depclean may break link level dependencies. Thus, it is\n")
+ msg.append("recommended to use a tool such as " + good("`revdep-rebuild`") + " (from\n")
+ msg.append("app-portage/gentoolkit) in order to detect such breakage.\n")
+ msg.append("\n")
msg.append("Always study the list of packages to be cleaned for any obvious\n")
msg.append("mistakes. Packages that are part of the world set will always\n")
msg.append("be kept. They can be manually added to this set with\n")
from __future__ import print_function
+from portage.const import _ENABLE_DYN_LINK_MAP
from portage.output import bold, turquoise, green
def shorthelp():
"listed in package.provided (see portage(5)) may be removed by " + \
"depclean, even if they are part of the world set."
+ if not _ENABLE_DYN_LINK_MAP:
+ paragraph += " Also note that " + \
+ "depclean may break link level dependencies. Thus, it is " + \
+ "recommended to use a tool such as revdep-rebuild(1) " + \
+ "in order to detect such breakage."
+
for line in wrap(paragraph, desc_width):
print(desc_indent + line)
print()