Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140731 - [patch] port of output-related efuncs from /sbin/functions.sh for output.py
Summary: [patch] port of output-related efuncs from /sbin/functions.sh for output.py
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 136244
  Show dependency tree
 
Reported: 2006-07-17 00:10 UTC by Alex Tarkovsky
Modified: 2006-07-20 14:06 UTC (History)
0 users

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


Attachments
output.py-eoutput.patch (output.py-eoutput.patch,4.91 KB, patch)
2006-07-17 00:10 UTC, Alex Tarkovsky
Details | Diff
use ebegin and eend for checksums (checksums.patch,2.15 KB, patch)
2006-07-17 13:15 UTC, Zac Medico
Details | Diff
output.py-eoutput.patch (output.py-eoutput.patch,4.90 KB, patch)
2006-07-18 00:54 UTC, Alex Tarkovsky
Details | Diff

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