From f2b84992e811bfa6c87ccb334ed6399f2ed6c074 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 7 Jul 2009 08:52:08 +0000 Subject: =?UTF-8?q?Bug=20#276866=20-=20--binpkg-respect-use=20<=20y=20|=20?= =?UTF-8?q?n=20>=20Tells=20emerge=20to=20ignore=20binary=20packages=20if?= =?UTF-8?q?=20their=20use=20flags=20don't=20match=20the=20current=20config?= =?UTF-8?q?uration.=20(default:=20=C2=B4n=C2=B4)=20Thanks=20to=20Sebastian?= =?UTF-8?q?=20Mingramm=20(few)=20=20for=20this=20patch?= =?UTF-8?q?=20(small=20tweaks=20by=20me).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/main/trunk/; revision=13802 --- pym/_emerge/main.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pym/_emerge/main.py') diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index a2c48554b..482679629 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -368,6 +368,7 @@ def insert_optional_args(args): jobs_opts = ("-j", "--jobs") default_arg_opts = { '--deselect' : ('n',), + '--binpkg-respect-use' : ('n', 'y',), '--root-deps' : ('rdeps',), } arg_stack = args[:] @@ -486,6 +487,14 @@ def parse_opts(tmpcmdline, silent=False): "type":"choice", "choices":["changed-use"] }, + + "--binpkg-respect-use": { + "help" : "discard binary packages if their use flags \ + don't match the current configuration", + "type" : "choice", + "choices" : ("True", "y", "n") + }, + "--root": { "help" : "specify the target root filesystem for merging packages", "action" : "store" @@ -527,6 +536,11 @@ def parse_opts(tmpcmdline, silent=False): if myoptions.deselect == "True": myoptions.deselect = True + if myoptions.binpkg_respect_use in ("y", "True",): + myoptions.binpkg_respect_use = True + else: + myoptions.binpkg_respect_use = None + if myoptions.root_deps == "True": myoptions.root_deps = True -- cgit v1.2.3-1-g7c22