diff options
-rw-r--r-- | man/color.map.5 | 9 | ||||
-rw-r--r-- | pym/_emerge/depgraph.py | 18 | ||||
-rw-r--r-- | pym/portage/output.py | 3 |
3 files changed, 25 insertions, 5 deletions
diff --git a/man/color.map.5 b/man/color.map.5 index 9ce76ad2..94f550d7 100644 --- a/man/color.map.5 +++ b/man/color.map.5 @@ -50,6 +50,15 @@ Defines color used for system packages planned to be merged. \fBPKG_MERGE_WORLD\fR = \fI"green"\fR Defines color used for world packages planned to be merged. .TP +\fBPKG_BINARY_MERGE\fR = \fI"purple"\fR +Defines color used for packages planned to be merged using a binary package. +.TP +\fBPKG_BINARY_MERGE_SYSTEM\fR = \fI"purple"\fR +Defines color used for system packages planned to be merged using a binary package. +.TP +\fBPKG_BINARY_MERGE_WORLD\fR = \fI"fuchsia"\fR +Defines color used for world packages planned to be merged using a binary package. +.TP \fBPKG_NOMERGE\fR = \fI"darkblue"\fR Defines color used for packages not planned to be merged. .TP diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 811e6f52..ff947891 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4500,12 +4500,20 @@ class depgraph(object): def pkgprint(pkg_str): if pkg_merge: - if pkg_system: - return colorize("PKG_MERGE_SYSTEM", pkg_str) - elif pkg_world: - return colorize("PKG_MERGE_WORLD", pkg_str) + if built: + if pkg_system: + return colorize("PKG_BINARY_MERGE_SYSTEM", pkg_str) + elif pkg_world: + return colorize("PKG_BINARY_MERGE_WORLD", pkg_str) + else: + return colorize("PKG_BINARY_MERGE", pkg_str) else: - return colorize("PKG_MERGE", pkg_str) + if pkg_system: + return colorize("PKG_MERGE_SYSTEM", pkg_str) + elif pkg_world: + return colorize("PKG_MERGE_WORLD", pkg_str) + else: + return colorize("PKG_MERGE", pkg_str) elif pkg_status == "uninstall": return colorize("PKG_UNINSTALL", pkg_str) else: diff --git a/pym/portage/output.py b/pym/portage/output.py index 3fbb0c99..971400d7 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -139,6 +139,9 @@ _styles["PKG_BLOCKER_SATISFIED"] = ( "darkblue", ) _styles["PKG_MERGE"] = ( "darkgreen", ) _styles["PKG_MERGE_SYSTEM"] = ( "darkgreen", ) _styles["PKG_MERGE_WORLD"] = ( "green", ) +_styles["PKG_BINARY_MERGE"] = ( "purple", ) +_styles["PKG_BINARY_MERGE_SYSTEM"] = ( "purple", ) +_styles["PKG_BINARY_MERGE_WORLD"] = ( "fuchsia", ) _styles["PKG_UNINSTALL"] = ( "red", ) _styles["PKG_NOMERGE"] = ( "darkblue", ) _styles["PKG_NOMERGE_SYSTEM"] = ( "darkblue", ) |