Make unmerge() colors more consistent.
authorZac Medico <zmedico@gentoo.org>
Tue, 27 Jun 2006 20:26:01 +0000 (20:26 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 Jun 2006 20:26:01 +0000 (20:26 -0000)
svn path=/main/trunk/; revision=3677

bin/emerge

index d48a4ee997a220382c7d25620645f65e92178fc8..e0c8a5ae780d63273d9ed89a3d2dcba20b903c59 100755 (executable)
@@ -2316,8 +2316,11 @@ def unmerge(settings, myopts, vartree, unmerge_action, unmerge_files,
                        print
 
        if (not "--quiet" in myopts):
-               print "\n>>>",red("'Selected'"),"packages are slated for removal."
-               print ">>>",green("'Protected'"),"and",green("'omitted'"),"packages will not be removed.\n"
+               portage.writemsg_stdout("\n>>> " + colorize("WARN", "'Selected'") + \
+                       " packages are slated for removal.\n")
+               portage.writemsg_stdout(">>> " + colorize("GOOD", "'Protected'") + \
+                        " and " + colorize("GOOD", "'omitted'") + \
+                        " packages will not be removed.\n")
 
        if "--pretend" in myopts:
                #we're done... return