diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-28 02:36:53 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-28 02:36:53 +0000 |
commit | c21c610b9176d1f6d3fc8ada5d1a1aed0da8135a (patch) | |
tree | 5d60719227d8de32335fb6ae2b0289528664cd37 | |
parent | ce33c96ed47701fcce759e16b2e95f81f6b70517 (diff) | |
download | portage-c21c610b9176d1f6d3fc8ada5d1a1aed0da8135a.tar.gz portage-c21c610b9176d1f6d3fc8ada5d1a1aed0da8135a.tar.bz2 portage-c21c610b9176d1f6d3fc8ada5d1a1aed0da8135a.zip |
For bug #144333, make the --reinstall option a single choice type.
svn path=/main/trunk/; revision=7069
-rw-r--r-- | pym/emerge/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
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"] } } |