ticks=range(secs)
ticks.reverse()
for sec in ticks:
- sys.stdout.write(colorize("WARN", str(sec+1)+" "))
+ sys.stdout.write(colorize("UNMERGE_WARN", str(sec+1)+" "))
sys.stdout.flush()
time.sleep(1)
print
ommitted_versions = "none"
portage.writemsg_stdout("\n %s\n" % bold(mycp), noiselevel=-1)
portage.writemsg_stdout("selected: ".rjust(14) + \
- colorize("WARN", selected_versions) + "\n", noiselevel=-1)
+ colorize("UNMERGE_WARN", selected_versions) + "\n", noiselevel=-1)
portage.writemsg_stdout("protected: ".rjust(14) + \
colorize("GOOD", protected_version) + "\n", noiselevel=-1)
portage.writemsg_stdout("omitted: ".rjust(14) + \
colorize("GOOD", ommitted_versions) + "\n", noiselevel=-1)
- portage.writemsg_stdout("\n>>>" + colorize("WARN", "'Selected'") + \
+ portage.writemsg_stdout("\n>>>" + colorize("UNMERGE_WARN", "'Selected'") + \
" packages are slated for removal.\n", noiselevel=0)
portage.writemsg_stdout(">>>" + colorize("GOOD", "'Protected'") + \
" and " + colorize("GOOD", "'omitted'") + \
print yellow("\a!!! Unmerging it may be damaging to your system.\n")
if "--pretend" not in myopts and "--ask" not in myopts:
countdown(int(settings["EMERGE_WARNING_DELAY"]),
- colorize("WARN", "Press Ctrl-C to Stop"))
+ colorize("UNMERGE_WARN", "Press Ctrl-C to Stop"))
print "\n "+white(x)
for mytype in ["selected","protected","omitted"]:
print string.rjust(mytype,12)+":",
else:
myversion=mysplit[2]+"-"+mysplit[3]
if mytype=="selected":
- portage.writemsg_stdout(colorize("WARN", myversion))
+ portage.writemsg_stdout(colorize("UNMERGE_WARN", myversion))
else:
portage.writemsg_stdout(colorize("GOOD", myversion))
else:
print "none",
print
- portage.writemsg_stdout("\n>>> " + colorize("WARN", "'Selected'") + \
+ portage.writemsg_stdout("\n>>> " + colorize("UNMERGE_WARN", "'Selected'") + \
" packages are slated for removal.\n")
portage.writemsg_stdout(">>> " + colorize("GOOD", "'Protected'") + \
" and " + colorize("GOOD", "'omitted'") + \
# Colors from /sbin/functions.sh
codes["GOOD"] = codes["green"]
-codes["WARN"] = codes["red"]
+codes["WARN"] = codes["yellow"]
codes["BAD"] = codes["red"]
codes["HILITE"] = codes["teal"]
codes["BRACKET"] = codes["blue"]
+# Portage functions
+codes["UNMERGE_WARN"] = codes["red"]
+
def parse_color_map():
myfile = COLOR_MAP_FILE
ansi_code_pattern = re.compile("^[0-9;]*m$")