diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-10-19 03:37:16 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-10-19 03:37:16 +0000 |
commit | 077024f43c3c482b2eb1c70e2e1ba414c9ffcff8 (patch) | |
tree | d2d180116e36789bdc65e8f389de70312a79b9b5 /pym/_emerge/main.py | |
parent | d47feac9df36d524568f24e291123501117aab13 (diff) | |
download | portage-077024f43c3c482b2eb1c70e2e1ba414c9ffcff8.tar.gz portage-077024f43c3c482b2eb1c70e2e1ba414c9ffcff8.tar.bz2 portage-077024f43c3c482b2eb1c70e2e1ba414c9ffcff8.zip |
Add a --use-ebuild-visibility option, for using unbuilt ebuild metadata
in visibility checks for built ebuilds. Thanks to Sebastian Mingramm (few)
for reporting the problem and testing the patch. (trunk r14665)
svn path=/main/branches/2.1.7/; revision=14685
Diffstat (limited to 'pym/_emerge/main.py')
-rw-r--r-- | pym/_emerge/main.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 5007ecfef..c09eef800 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -313,6 +313,7 @@ def insert_optional_args(args): '--root-deps' : ('rdeps',), '--select' : ('n',), '--selective' : ('n',), + "--use-ebuild-visibility": ('n',), '--usepkg' : ('n',), '--usepkgonly' : ('n',), } @@ -550,6 +551,12 @@ def parse_opts(tmpcmdline, silent=False): "choices" : ("True", "n") }, + "--use-ebuild-visibility": { + "help" : "use unbuilt ebuild metadata for visibility checks on built packages", + "type" : "choice", + "choices" : ("True", "n") + }, + "--usepkg": { "shortopt" : "-k", "help" : "use binary packages", @@ -693,6 +700,11 @@ def parse_opts(tmpcmdline, silent=False): myoptions.load_average = load_average + if myoptions.use_ebuild_visibility in ("True",): + myoptions.use_ebuild_visibility = True + else: + myoptions.use_ebuild_visibility = None + if myoptions.usepkg in ("True",): myoptions.usepkg = True else: |