summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge17
1 files changed, 8 insertions, 9 deletions
diff --git a/bin/emerge b/bin/emerge
index 41532406e..754ac9ad3 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -1503,16 +1503,15 @@ class depgraph:
enabled = []
disabled = []
for flag in cur_iuse:
- if flag in cur_use:
- if flag in old_use:
- enabled.append(red(flag))
- else:
+ if flag in cur_use and flag not in old_use:
+ if flag in old_iuse:
enabled.append(green(flag)+"*")
- else:
- if flag in old_use:
- disabled.append(green("-"+flag)+"*")
- elif is_new or flag not in old_iuse:
- disabled.append(blue("-"+flag))
+ else:
+ enabled.append(red(flag))
+ elif flag not in cur_use and flag in old_use:
+ disabled.append(green("-"+flag)+"*")
+ elif is_new:
+ disabled.append(blue("-"+flag))
enabled = " ".join(enabled)
disabled = " ".join(disabled)
if enabled and disabled: