From e0bc4ab7fee256bb6e772546359554e5de0ee986 Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Wed, 21 Dec 2005 14:57:20 +0000 Subject: [PATCH] Don't show enabled flags when not using --verbose if they haven't changed since the last emerge. Show enabled flags in red rather than green if the previously merged package didn't support them. svn path=/main/trunk/; revision=2421 --- bin/emerge | 17 ++++++++--------- 1 file 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: -- 2.26.2