diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-08-10 20:17:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-08-10 20:17:18 +0000 |
commit | 41aafaed56515448bd7762e5b04e10716727170a (patch) | |
tree | ce6f5e61a4a8912fc367059cf17d56d89e035c82 | |
parent | 261d7cfb182c703afab1eac252f16d3935f76897 (diff) | |
download | portage-41aafaed56515448bd7762e5b04e10716727170a.tar.gz portage-41aafaed56515448bd7762e5b04e10716727170a.tar.bz2 portage-41aafaed56515448bd7762e5b04e10716727170a.zip |
Display masked USE flags as (-flag) instead of ( -flag ) to save space.
svn path=/main/trunk/; revision=4212
-rwxr-xr-x | bin/emerge | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/bin/emerge b/bin/emerge index 15b0a5ea7..184b354a3 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1294,28 +1294,30 @@ class depgraph: else: disabled = [] for flag in cur_iuse: + flag_str = None + isEnabled = False if flag in cur_use: - if flag in iuse_forced: - enabled.append("(") + isEnabled = True if is_new or flag in old_use and all_flags: - enabled.append(red(flag)) + flag_str = red(flag) elif flag not in old_iuse: - enabled.append(yellow(flag)+"%") + flag_str = yellow(flag) + "%" elif flag not in old_use: - enabled.append(green(flag)+"*") - if flag in iuse_forced: - enabled.append(")") + flag_str = green(flag) + "*" else: - if flag in iuse_forced: - disabled.append("(") if is_new or flag in old_iuse and flag not in old_use and all_flags: - disabled.append(blue("-"+flag)) + flag_str = blue("-" + flag) elif flag not in old_iuse: - disabled.append(yellow("-"+flag)+"%") + flag_str = yellow("-" + flag) + "%" elif flag in old_use: - disabled.append(green("-"+flag)+"*") + flag_str = green("-" + flag) + "*" + if flag_str: if flag in iuse_forced: - disabled.append(")") + flag_str = "(" + flag_str + ")" + if isEnabled: + enabled.append(flag_str) + else: + disabled.append(flag_str) enabled = " ".join(enabled) if alphabetical: |