| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
If PORT_LOGDIR is writable by the portage group but its uid is not
portage_uid, then set the uid to portage_uid if we have privileges to
do so, and also copy the uid to the logfile. This fixes logrotate
chown failures during the compression phase, when it attempts to copy
the uid from the logfile to a temp file. With the "su portage portage"
directive and logrotate-3.8.0, logrotate's chown call during the
compression phase will only succeed if the log file's uid is
portage_uid.
|
|
|
|
|
| |
These permissions should be compatible with our default logrotate
config as discussed in bug 374287.
|
| |
|
|
|
|
|
| |
This fixes permission issues with category subdirectories created for
FEATURES=split-elog.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
(2to3-3.1 -f numliterals -nw ${FILES})
svn path=/main/trunk/; revision=14292
|
|
|
|
|
|
|
| |
to avoid a potential UnicodeDecodeError later. Thanks to Markus Duft
<mduft@gentoo.org> for reporting.
svn path=/main/trunk/; revision=14180
|
|
|
|
|
|
| |
encoding.
svn path=/main/trunk/; revision=14111
|
|
|
|
| |
svn path=/main/trunk/; revision=14051
|
|
|
|
| |
svn path=/main/trunk/; revision=13961
|
|
|
|
| |
svn path=/main/trunk/; revision=13733
|
|
|
|
| |
svn path=/main/trunk/; revision=9273
|
|
|
|
|
|
| |
calls. This helps avoid 'Permission denied' errors during elog_process() when the ebuild command is run by normal user (issue reported by graaff).
svn path=/main/trunk/; revision=7789
|
|
|
|
| |
svn path=/main/trunk/; revision=6548
|
|
|
|
|
|
|
|
| |
- add copyright header in elog modules and enable keyword substitution
- enable save_summary and echo modules in make.globals
svn path=/main/trunk/; revision=6458
|
|
svn path=/main/trunk/; revision=5955
|