From 3ad69facf2b5e561d2fc6753f66164706fca32fc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 1 Jul 2006 18:05:55 +0000 Subject: [PATCH] Add a new MERGE_LIST_PROGRESS color class and remove hard coded yellow/green. svn path=/main/trunk/; revision=3743 --- bin/emerge | 5 ++++- pym/output.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/emerge b/bin/emerge index 4965d5f76..e577567e8 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1792,7 +1792,10 @@ class depgraph: pkgindex=3 y = self.portdb.findname(x[pkgindex]) if "--pretend" not in self.myopts: - print "\n>>> Emerging ("+yellow(str(mergecount))+" of "+yellow(str(len(mymergelist)))+")",green(x[pkgindex]),"to",x[1] + print "\n>>> Emerging (" + \ + colorize("MERGE_LIST_PROGRESS", str(mergecount)) + " of " + \ + colorize("MERGE_LIST_PROGRESS", str(len(mymergelist))) + ") " + \ + colorize("GOOD", x[pkgindex]) + " to " + x[1] emergelog(xterm_titles, " >>> emerge ("+\ str(mergecount)+" of "+str(len(mymergelist))+\ ") "+x[pkgindex]+" to "+x[1]) diff --git a/pym/output.py b/pym/output.py index 87382774a..d41f7f20e 100644 --- a/pym/output.py +++ b/pym/output.py @@ -125,6 +125,7 @@ codes["BRACKET"] = codes["blue"] # Portage functions codes["UNMERGE_WARN"] = codes["red"] +codes["MERGE_LIST_PROGRESS"] = codes["yellow"] def parse_color_map(): myfile = COLOR_MAP_FILE -- 2.26.2