Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 110870

Summary: incorrect def for output.ctext
Product: Gentoo Linux Reporter: Marshall McMullen <mcmullen>
Component: EclassesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jakub Moc (RETIRED) gentoo-dev 2005-10-30 01:15:06 UTC
You neglected to post emerge --info output, no idea about which portage version
are you talking then. 
Comment 1 Marshall McMullen 2005-10-30 01:57:03 UTC
In output.py, the following is defined:

def ctext(color,text):
        return codes[ctext]+text+codes["reset"]

This most certainly should be:

def ctext(color,text):
        return codes[color]+text+codes["reset"]



Reproducible: Always
Steps to Reproduce:
Try running this code from python:

import output
msg = output.ctext("yellow","Testing text")

Actual Results:  
It throws an error saying that 'yellow' is not in 'codes' list.

Expected Results:  
It should look up a color code and color the text based on color submitted....