summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-28 09:01:17 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-28 09:01:17 +0000
commit6606e39d6956e277a49533f45badae3b8358d3f8 (patch)
tree8bc19c8ff5ffb450d75649387db2e150a7dd581d
parentb24f0a2de80477f8d4bbcfb81b76391fbfafb11d (diff)
downloadportage-6606e39d6956e277a49533f45badae3b8358d3f8.tar.gz
portage-6606e39d6956e277a49533f45badae3b8358d3f8.tar.bz2
portage-6606e39d6956e277a49533f45badae3b8358d3f8.zip
Don't colorize system package when in "world" mode.
svn path=/main/trunk/; revision=7076
-rw-r--r--pym/emerge/__init__.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 62ea9c907..8fbf994b2 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -2847,9 +2847,11 @@ class depgraph(object):
world_nodes = self._sets_nodes.get("world")
if world_nodes and pkg_node in world_nodes:
pkg_world = True
- system_nodes = self._sets_nodes.get("system")
- if system_nodes and pkg_node in system_nodes:
- pkg_system = True
+ if world_nodes is None:
+ # Don't colorize system package when in "world" mode.
+ system_nodes = self._sets_nodes.get("system")
+ if system_nodes and pkg_node in system_nodes:
+ pkg_system = True
def pkgprint(pkg):
if pkg_merge: