From: Zac Medico Date: Thu, 28 Jun 2007 02:36:53 +0000 (-0000) Subject: For bug #144333, make the --reinstall option a single choice type. X-Git-Tag: v2.2_pre1~1128 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c21c610b9176d1f6d3fc8ada5d1a1aed0da8135a;p=portage.git For bug #144333, make the --reinstall option a single choice type. svn path=/main/trunk/; revision=7069 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 838d1fbb6..e38641eed 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -1053,7 +1053,7 @@ class depgraph(object): elif org_iuse.intersection(orig_use) != \ cur_iuse.intersection(cur_use): return True - elif "changed-use" in self.myopts.get("--reinstall","").split(","): + elif "changed-use" == self.myopts.get("--reinstall"): if org_iuse.intersection(orig_use) != \ cur_iuse.intersection(cur_use): return True @@ -5329,7 +5329,9 @@ def parse_opts(tmpcmdline, silent=False): "choices":("y", "n") }, "--reinstall": { - "help":"specify conditions to trigger package reinstallation" + "help":"specify conditions to trigger package reinstallation", + "type":"choice", + "choices":["changed-use"] } }