diff options
Diffstat (limited to 'pym/_emerge/main.py')
-rw-r--r-- | pym/_emerge/main.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 64733ceaa..062d79dad 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -24,6 +24,7 @@ from portage.output import create_color_func 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 @@ -396,7 +397,6 @@ def insert_optional_args(args): '--autounmask' : ('n',), '--complete-graph' : ('n',), '--deep' : valid_integers, - '--depclean-lib-check' : ('n',), '--deselect' : ('n',), '--binpkg-respect-use' : ('n', 'y',), '--fail-clean' : ('n',), @@ -414,6 +414,9 @@ def insert_optional_args(args): '--usepkgonly' : ('n',), } + if _ENABLE_DYN_LINK_MAP: + default_arg_opts['--depclean-lib-check'] = ('n',) + short_arg_opts = { 'D' : valid_integers, 'j' : valid_integers, @@ -569,12 +572,6 @@ def parse_opts(tmpcmdline, silent=False): "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", @@ -718,6 +715,13 @@ def parse_opts(tmpcmdline, silent=False): } + 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"): |