From e518bcab9ec8e236b333bd6ade79715b335f50e7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 28 Jun 2007 02:37:18 +0000 Subject: [PATCH] For bug #144333, make the --reinstall option a single choice type. (trunk r7069) svn path=/main/branches/2.1.2/; revision=7070 --- bin/emerge | 6 ++++-- 1 file 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"] } } -- 2.26.2