diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-28 02:37:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-28 02:37:18 +0000 |
commit | e518bcab9ec8e236b333bd6ade79715b335f50e7 (patch) | |
tree | ac3a23c4fae255ae55adb00694b184a43bcc9f79 | |
parent | 864a6ef93103956c0bd9a3f12aeaf84bc86f391d (diff) | |
download | portage-e518bcab9ec8e236b333bd6ade79715b335f50e7.tar.gz portage-e518bcab9ec8e236b333bd6ade79715b335f50e7.tar.bz2 portage-e518bcab9ec8e236b333bd6ade79715b335f50e7.zip |
For bug #144333, make the --reinstall option a single choice type. (trunk r7069)
svn path=/main/branches/2.1.2/; revision=7070
-rwxr-xr-x | bin/emerge | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge index 4cc102337..d9bde5e11 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1052,7 +1052,7 @@ class depgraph: 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 @@ -5204,7 +5204,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"] } } |