Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 126192 Details for
Bug 186826
--newuse flags are not displayed for removed flags unless --verbose is enabled
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
show --newuse flags that trigger reinstallation even when not in --verbose mode
newuse.patch (text/plain), 3.17 KB, created by
Zac Medico
on 2007-07-27 22:09:56 UTC
(
hide
)
Description:
show --newuse flags that trigger reinstallation even when not in --verbose mode
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-07-27 22:09:56 UTC
Size:
3.17 KB
patch
obsolete
>Index: bin/emerge >=================================================================== >--- bin/emerge (revision 7407) >+++ bin/emerge (revision 7408) >@@ -2586,7 +2586,8 @@ > else: > def create_use_string(name, cur_iuse, iuse_forced, cur_use, > old_iuse, old_use, >- is_new, all_flags=(verbosity == 3 or "--quiet" in self.myopts), >+ is_new, reinst_flags, >+ all_flags=(verbosity == 3 or "--quiet" in self.myopts), > alphabetical=("--alphabetical" in self.myopts)): > enabled = [] > if alphabetical: >@@ -2604,16 +2605,18 @@ > for flag in any_iuse: > flag_str = None > isEnabled = False >+ reinst_flag = reinst_flags and flag in reinst_flags > if flag in enabled_flags: > isEnabled = True >- if is_new or flag in old_use and all_flags: >+ if is_new or flag in old_use and \ >+ (all_flags or reinst_flag): > flag_str = red(flag) > elif flag not in old_iuse: > flag_str = yellow(flag) + "%*" > elif flag not in old_use: > flag_str = green(flag) + "*" > elif flag in removed_iuse: >- if all_flags: >+ if all_flags or reinst_flag: > flag_str = yellow("-" + flag) + "%" > if flag in old_use: > flag_str += "*" >@@ -2621,7 +2624,9 @@ > removed.append(flag_str) > continue > else: >- if is_new or flag in old_iuse and flag not in old_use and all_flags: >+ if is_new or flag in old_iuse and \ >+ flag not in old_use and \ >+ (all_flags or reinst_flag): > flag_str = blue("-" + flag) > elif flag not in old_iuse: > flag_str = yellow("-" + flag) >@@ -2932,22 +2937,24 @@ > > # Prevent USE_EXPAND_HIDDEN flags from being hidden if they > # are the only thing that triggered reinstallation. >- reinst_flags_map = None >+ reinst_flags_map = {} > reinstall_for_flags = self._reinstall_nodes.get(pkg_node) >+ reinst_expand_map = None > if reinstall_for_flags: > reinst_flags_map = map_to_use_expand( > list(reinstall_for_flags), removeHidden=False) >- if reinst_flags_map["USE"]: >- reinst_flags_map = None >- else: >- for k in reinst_flags_map.keys(): >- if not reinst_flags_map[k]: >- del reinst_flags_map[k] >- if reinst_flags_map and \ >- not set(reinst_flags_map).difference( >+ for k in list(reinst_flags_map): >+ if not reinst_flags_map[k]: >+ del reinst_flags_map[k] >+ if not reinst_flags_map.get("USE"): >+ reinst_expand_map = reinst_flags_map.copy() >+ reinst_expand_map.pop("USE", None) >+ if reinst_expand_map and \ >+ not set(reinst_expand_map).difference( > use_expand_hidden): >- use_expand_hidden = set(use_expand_hidden).difference( >- reinst_flags_map) >+ use_expand_hidden = \ >+ set(use_expand_hidden).difference( >+ reinst_expand_map) > > cur_iuse_map, iuse_forced = \ > map_to_use_expand(cur_iuse, forcedFlags=True) >@@ -2964,7 +2971,8 @@ > verboseadd += create_use_string(key.upper(), > cur_iuse_map[key], iuse_forced[key], > cur_use_map[key], old_iuse_map[key], >- old_use_map[key], is_new) >+ old_use_map[key], is_new, >+ reinst_flags_map.get(key)) > > if verbosity == 3: > # size verbose
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 186826
: 126192