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

Bug 140731

Summary: [patch] port of output-related efuncs from /sbin/functions.sh for output.py
Product: Portage Development Reporter: Alex Tarkovsky <alextarkovsky>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 136244    
Attachments: output.py-eoutput.patch
use ebegin and eend for checksums
output.py-eoutput.patch

Description Alex Tarkovsky 2006-07-17 00:10:00 UTC
Patch provides a new EOutput class for the Portage output.py module. EOutput is a convenient Python port of the familiar ebegin(), eend(), eerror(), einfo(), einfon(), ewarn(), and ewend() functions from /sbin/functions.sh.

The inline documentation is written according to Chris White's new Portage API documentation proposal currently being discussed on gentoo-portage-dev [1]. As an aside, you can generate nice HTML formatted API docs for EOutput from the source with the following command if you have epydoc installed:

epydoc --name Portage -o ~/epydoc output.py

[1] http://tinyurl.com/f3wb8
Comment 1 Alex Tarkovsky 2006-07-17 00:10:33 UTC
Created attachment 91961 [details, diff]
output.py-eoutput.patch
Comment 2 Zac Medico gentoo-dev 2006-07-17 13:15:52 UTC
Created attachment 92023 [details, diff]
use ebegin and eend for checksums

This patch uses ebegin and eend to enhance the visual output when portage performs checksums.  The ;-) is sort of redundant, but I kept it because I know that some people are extremely attached to it. :)
Comment 3 Alex Tarkovsky 2006-07-18 00:54:20 UTC
Created attachment 92066 [details, diff]
output.py-eoutput.patch

Updated to correct a couple of minor errors in the docstrings.
Comment 4 Zac Medico gentoo-dev 2006-07-18 22:57:48 UTC
Thanks, your patch is in svn r3924.
Comment 5 Zac Medico gentoo-dev 2006-07-20 14:06:16 UTC
This has been released in 2.1.1_pre3-r2.