| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
This will handle invalid message types like the one that triggers the
KeyError in dblink._elog_process for bug #390833. It will also output
the content of the line in order to help diagnose the source of
corruption.
|
|
|
|
|
| |
This fixes unintended extra blank lines since commit
1c8ff00a26b0e2e3627e9c552374f71235ee6c39.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The io.open() function is the same as the built-in open() function in
python3, and its implementation is optimized in python-2.7 and later.
In addition to the possible performance improvement, this also allows
us to avoid any future compatibility issues with codecs.open() that
may arise if it is delegated to the built-in open() function as
discussed in PEP 400.
The main caveat involved with io.open() is that TextIOWrapper.write()
raises TypeError if given raw bytes, unlike the streams returned from
codecs.open(). This is mainly an issue for python2 since literal
strings are raw bytes. We handle this by wrapping TextIOWrapper.write()
arguments with our _unicode_decode() function. Also, the
atomic_ofstream class overrides the write() method in python2 so that
it performs automatic coercion to unicode when necessary.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
potential UnicodeEncodeError exceptions.
svn path=/main/trunk/; revision=14734
|
|
|
|
|
|
| |
encoding.
svn path=/main/trunk/; revision=14111
|
|
|
|
| |
svn path=/main/trunk/; revision=14051
|
|
|
|
|
|
| |
Thanks to jlec for reporting.
svn path=/main/trunk/; revision=13958
|
|
|
|
| |
svn path=/main/trunk/; revision=13931
|
|
|
|
| |
svn path=/main/trunk/; revision=13733
|
|
|
|
|
|
| |
modules when portage is initially imported.
svn path=/main/trunk/; revision=12681
|
|
|
|
|
|
| |
when portage is initially imported.
svn path=/main/trunk/; revision=12680
|
|
|
|
| |
svn path=/main/trunk/; revision=12642
|
|
|
|
| |
svn path=/main/trunk/; revision=12626
|
|
|
|
|
|
|
|
| |
'read' to split on newlines, it's safe to use newlines as delimiters in
the log file since 'read' is guaranteed to split any newlines contained
in the arguments.
svn path=/main/trunk/; revision=11601
|
|
|
|
|
|
|
|
| |
not entirely safe to use it as a delimiter in the log file since
there can still be escaped newlines that will be expanded due to
the echo -e parameter.
svn path=/main/trunk/; revision=11244
|
|
|
|
|
|
| |
now that lines are always split.
svn path=/main/trunk/; revision=11220
|
|
|
|
|
|
|
|
| |
mode. This is implemented by adding a new "out" parameter to the
portage.elog.e* functions, which can be used to send output to an arbitary
file instead of stdout.
svn path=/main/trunk/; revision=11117
|
|
|
|
|
|
| |
Replace dict.has_key() calls with "in" and "not in" operators.
svn path=/main/trunk/; revision=10873
|
|
|
|
| |
svn path=/main/trunk/; revision=10694
|
|
|
|
|
|
|
|
|
| |
ValueError to be raised from a split() call inside collect_ebuild_messages():
* Use \0 to delimit messages, so that that elog messages containing newlines
are handled correctly.
* Handle a potential ValueError when splitting the message type.
svn path=/main/trunk/; revision=9763
|
|
|
|
|
|
| |
messages to get lost.
svn path=/main/trunk/; revision=9747
|
|
|
|
|
|
| |
#197905)
svn path=/main/trunk/; revision=9726
|
|
|
|
|
|
| |
#212055
svn path=/main/trunk/; revision=9407
|
|
|
|
|
|
| |
use BAD like the bash version does.
svn path=/main/trunk/; revision=8177
|
|
|
|
| |
svn path=/main/trunk/; revision=7651
|
|
|
|
| |
svn path=/main/trunk/; revision=6913
|
|
svn path=/main/trunk/; revision=6548
|