Add new colors for binary packages in the merge list. Thanks to Sebastian
authorZac Medico <zmedico@gentoo.org>
Wed, 3 Mar 2010 19:03:48 +0000 (19:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 3 Mar 2010 19:03:48 +0000 (19:03 -0000)
Luther (few) for this patch.

svn path=/main/trunk/; revision=15739

man/color.map.5
pym/_emerge/depgraph.py
pym/portage/output.py

index 9ce76ad26f5050560b4a4d935c03d209415467fa..94f550d7e4a4f207b65f25c9d2febc8670193852 100644 (file)
@@ -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
index 811e6f52280786fe1e9c7964123a894d28e84afb..ff947891121ad751ac5fa61d87f7f14f3f8b422e 100644 (file)
@@ -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:
index 3fbb0c992187c957fc8ee3eef46b8db472693212..971400d76cfce549666b15a9a37a8b5b2aac2c28 100644 (file)
@@ -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", )