print(" that are not directly listed in the dependencies of a package.")
print(" Also see --with-bdeps for behavior with respect to build time")
print(" dependencies that are not strictly required.")
- print()
- print(" " + green("--depclean-lib-check") + "[=%s]" % turquoise("n"))
- 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."
- for line in wrap(desc, desc_width):
- print(desc_indent + line)
print()
+
+ if _ENABLE_DYN_LINK_MAP:
+ print(" " + green("--depclean-lib-check") + "[=%s]" % turquoise("n"))
+ 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."
+ for line in wrap(desc, desc_width):
+ print(desc_indent + line)
+ print()
+
print(" "+green("--emptytree")+" ("+green("-e")+" short option)")
desc = "Reinstalls target atoms and their entire deep " + \
"dependency tree, as though no packages are currently " + \
good = create_color_func("GOOD")
bad = create_color_func("BAD")
+from portage.const import _ENABLE_DYN_LINK_MAP
import portage.elog
import portage.util
import portage.locks
'--autounmask' : ('n',),
'--complete-graph' : ('n',),
'--deep' : valid_integers,
- '--depclean-lib-check' : ('n',),
'--deselect' : ('n',),
'--binpkg-respect-use' : ('n', 'y',),
'--fail-clean' : ('n',),
'--usepkgonly' : ('n',),
}
+ if _ENABLE_DYN_LINK_MAP:
+ default_arg_opts['--depclean-lib-check'] = ('n',)
+
short_arg_opts = {
'D' : valid_integers,
'j' : valid_integers,
"action" : "store"
},
- "--depclean-lib-check": {
- "help" : "check for consumers of libraries before removing them",
- "type" : "choice",
- "choices" : ("True", "n")
- },
-
"--deselect": {
"help" : "remove atoms/sets from the world file",
"type" : "choice",
}
+ if _ENABLE_DYN_LINK_MAP:
+ argument_options["--depclean-lib-check"] = {
+ "help" : "check for consumers of libraries before removing them",
+ "type" : "choice",
+ "choices" : ("True", "n")
+ }
+
from optparse import OptionParser
parser = OptionParser()
if parser.has_option("--help"):