Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110870 - incorrect def for output.ctext
Summary: incorrect def for output.ctext
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-30 01:57 UTC by Marshall McMullen
Modified: 2005-10-30 01:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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....