summaryrefslogtreecommitdiffstats
path: root/pym/portage/output.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Bug #309149 - Unify look of eend used in bash & python code, additionallyZac Medico2010-03-201-5/+2
| | | | | | | fixing few inconsistences in bash code. Thanks to Michał Górny <gentoo@mgorny.alt.pl> for this patch. svn path=/main/trunk/; revision=15839
* Add new colors for binary packages in the merge list. Thanks to SebastianZac Medico2010-03-031-0/+3
| | | | | | Luther (few) for this patch. svn path=/main/trunk/; revision=15739
* Tweak TERM usage in xtermTitleReset() to match that in xtermTitle().Zac Medico2010-01-111-1/+4
| | | | svn path=/main/trunk/; revision=15190
* Don't assign f to sys.stderr inside EOutput._write().Zac Medico2009-12-081-1/+0
| | | | svn path=/main/trunk/; revision=14970
* Bug #290625 - Manually encode output to stdout in python3, in order to avoidZac Medico2009-10-261-13/+21
| | | | | | potential UnicodeEncodeError exceptions. svn path=/main/trunk/; revision=14734
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-2/+2
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Use range() instead of xrange() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-211-2/+2
| | | | | | (2to3-3.1 -f xrange -nw ${FILES}) svn path=/main/trunk/; revision=14317
* Add support in ConsoleStyleFile.write() for unicode encoding when writing toZac Medico2009-09-201-5/+15
| | | | | | stdout/stderr in python-2.x. svn path=/main/trunk/; revision=14303
* Misc unicode fixes for repoman.Zac Medico2009-09-201-0/+5
| | | | svn path=/main/trunk/; revision=14302
* Use _unicode_encode() to ensure that only unicode strings are passed intoZac Medico2009-09-201-0/+7
| | | | | | io.StringIO text streams. svn path=/main/trunk/; revision=14301
* Update system imports for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-2/+5
| | | | svn path=/main/trunk/; revision=14294
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-3/+3
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* remove FIXME, since zmedico fixed itFabian Groffen2009-08-241-5/+0
| | | | svn path=/main/trunk/; revision=14140
* Bug #282269, comment #2 - Avoid potential UnicodeEncodeError when writingZac Medico2009-08-221-0/+3
| | | | | | to sys.stderr inside xtermTitle(). svn path=/main/trunk/; revision=14126
* Use _encodings where appropriate and add _encodings['stdio'] for stdoutZac Medico2009-08-211-5/+4
| | | | | | encoding. svn path=/main/trunk/; revision=14111
* Use _content_encoding and _fs_encoding where appropriate.Zac Medico2009-08-181-5/+8
| | | | svn path=/main/trunk/; revision=14084
* Implement lazy loading of color.map when either the codes or _stylesZac Medico2009-08-181-12/+45
| | | | | | | | attribute is accessed. This provides and _init(config_root='/') function that the prefix branch can use to substitute an appropriate config_root value at runtime. svn path=/main/trunk/; revision=14083
* Prepare 308 messages to localization.Arfrever Frehtes Taifersar Arahesis2009-08-151-11/+9
| | | | svn path=/main/trunk/; revision=14067
* Fix EOutput to safely write unicode to stderr/stdout. Thanks to Arfrever forZac Medico2009-08-091-14/+17
| | | | | | reporting. svn path=/main/trunk/; revision=13964
* Always pass encodings='utf_8' to codecs.open(), since otherwise it canZac Medico2009-07-201-1/+2
| | | | | | | | | | return non-unicode strings (at least in some cases, observed with python-2.6.2). Don't use unicode in portage.util.getconfig() for now, since shlex doesn't seem to support it (spurious \0 characters). If we use unicode for config variables, it breaks shlex.split() calls on those variables due to the same issue (spurious \0 characters). svn path=/main/trunk/; revision=13845
* Remove leading slash from appropriate paths inside portage.const, so thatZac Medico2009-07-121-1/+7
| | | | | | | lstrip(os.sep) is not needed for os.path.join() calls. Thanks to Fabian Groffen <grobian@g.o> for this patch. svn path=/main/trunk/; revision=13821
* Rename color_codes back to codes.Zac Medico2009-06-171-70/+70
| | | | svn path=/main/trunk/; revision=13648
* Rename codes to _styles.Zac Medico2009-06-171-30/+30
| | | | svn path=/main/trunk/; revision=13647
* Rename map_code_to_color_code() to style_to_ansi_code().Zac Medico2009-06-171-5/+12
| | | | svn path=/main/trunk/; revision=13646
* Add epydoc docstrings fro codes and color_codes variables.Zac Medico2009-06-171-0/+3
| | | | svn path=/main/trunk/; revision=13645
* Use map_code_to_color_code() where appropriate inside ConsoleStyleFile.write().Zac Medico2009-06-171-1/+1
| | | | svn path=/main/trunk/; revision=13644
* Bug #274279 - Add color.map support for mapping a color to a different colorZac Medico2009-06-161-148/+148
| | | | | | | (rather than just mapping a class/style to a different color). Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13643
* Make xtermTitle() use a global variable to cache the result of the TERM check.Zac Medico2009-04-291-13/+17
| | | | svn path=/main/trunk/; revision=13410
* Use lazyimport to avoid importing the checksum, locks, and util modulesZac Medico2009-02-221-2/+7
| | | | | | when portage is initially imported. svn path=/main/trunk/; revision=12680
* Add a "quiet" parameter to the EOutput constructor, and also flushZac Medico2009-01-101-2/+4
| | | | | | stderr/stdout stream in the constructor. svn path=/main/trunk/; revision=12416
* Use ebegin/eend to indicate when waiting for a lock and when it's acquired.Zac Medico2009-01-101-4/+5
| | | | | | Thanks to Petteri Räty <belegeuse@g.o> for the suggestion. svn path=/main/trunk/; revision=12415
* Direct EOutput.eerror() and ewarn() output to stderr.Zac Medico2008-09-261-2/+2
| | | | svn path=/main/trunk/; revision=11554
* Use stdout.write() instead of "print", for py3k compat.Zac Medico2008-07-031-14/+24
| | | | svn path=/main/trunk/; revision=10897
* Fix the PermissionDenied message for color.map.Zac Medico2008-06-261-1/+4
| | | | svn path=/main/trunk/; revision=10805
* More eblank.Zac Medico2008-06-171-1/+0
| | | | svn path=/main/trunk/; revision=10704
* Remove eblank nonsenseMarius Mauch2008-06-171-14/+0
| | | | svn path=/main/trunk/; revision=10694
* * Rename NEUTRAL color to BLANK for eblank.Zac Medico2008-06-171-1/+15
| | | | | | | * Document the new BLANK code in color.map.5. * Implement python version of eblank for mod_echo. svn path=/main/trunk/; revision=10677
* Add support for an new "eblank" elog function that shows a blank line.Zac Medico2008-06-171-0/+1
| | | | | | | Consecutive eblank calls are all collapsed into a single blank line. Thanks to Joe Peterson <lavajoe@g.o> for this patch. svn path=/main/trunk/; revision=10675
* Make set_term_size() handle the CommandNotFound exception if sttyZac Medico2008-05-281-2/+6
| | | | | | is missing for some reason. svn path=/main/trunk/; revision=10461
* add xterm-color and interix to list of valid terminalsMarius Mauch2008-05-131-1/+1
| | | | svn path=/main/trunk/; revision=10329
* Make satisfied blockers "darkblue" by default.Zac Medico2008-05-061-1/+1
| | | | svn path=/main/trunk/; revision=10218
* Display satisfied blockers in green and show a small "b" instead of aZac Medico2008-05-061-0/+2
| | | | | | big "B" (similar to "f" for satisfied fetch restrictions). svn path=/main/trunk/; revision=10214
* Bug #172812 - Automatically uninstall packages to avoid blocker conflicts.Zac Medico2008-04-231-0/+1
| | | | | | | | | | | | | | | | | | | The intention is to only uninstall packages that would be removed by --depclean (after the updates) anyway. To prevent automatic uninstallation of packages that the user probably wants to keep, the following types of packages will not be automatically unmerged: * Installed packages that have been pulled into the current dependency graph. Note that this check is not necessarily complete unless the --complete-graph option is enabled, making other sanity checks necessary. * Installed packages matched by atoms from the system set. For safety, these are unmerged after being replaced by another version. * Installed packages matched by atoms from the world set, if there is no matching replacement in the current dependency graph. svn path=/main/trunk/; revision=9946
* Bug #204651 - Make repoman respect NOCOLOR=true.Zac Medico2008-01-061-1/+2
| | | | svn path=/main/trunk/; revision=9151
* Move the reusable ConsoleStyleFile and StyleWriter classes intoZac Medico2007-12-151-0/+52
| | | | | | the ouput module. svn path=/main/trunk/; revision=8934
* Tweak EOutput.term_columns calculation for TERM="dumb" soZac Medico2007-11-081-1/+1
| | | | | | | that it behaves like TERM="cons25" currently does. Thanks to Ulrich Mueller <ulm@gentoo.org> for the patch. svn path=/main/trunk/; revision=8468
* If the title string is too big then xtermTitle() canZac Medico2007-10-251-0/+5
| | | | | | | | | misbehave by causing the terminal to echo some of the characters and generate a "beep" sound. This is easily triggered by doing things like `emerge world` now since all the the atoms are expanded. svn path=/main/trunk/; revision=8289
* Run pychecker over everything, fix obvious thing slike modules not in use, ↵Alec Warner2007-07-221-3/+8
| | | | | | variables not being used, or global exceptions not being deleted. Also fix imports for style (1 per line) svn path=/main/trunk/; revision=7354
* Add "reset" to the list of attributes.Zac Medico2007-07-121-1/+2
| | | | svn path=/main/trunk/; revision=7242