| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
If /etc/portage/profile/eapi does not exist, then support extended atom
syntax. This will fix bug #436330.
|
|
|
|
| |
This broke in commit 09de8dc47ec48af2276dfa098dd5e1d3d09ddbdd.
|
|
|
|
| |
This fixes potential issues similar to those reported in bug #310789.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This fixes it to show the correct file/line, even when one file sources
another.
|
|
|
|
|
|
|
| |
authentication in the way compatible with Python 3."
This reverts commit 0a9cc38a66ded0cf0e5b534cb24b970fc9c21920. As
reported in bug #415579, that commit broke FTP authentication.
|
|
|
|
| |
handles authentication in the way compatible with Python 3.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Caching wasn't really necessary here, and it didn't properly account
for input differences in the 'mydict' parameter.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This is preferred since the bytes type is available in all supported
python versions, while the unicode type is only available in python2.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Since the io module in python-2.6 was broken when threading was
disabled, we needed to fall back from io.StringIO to StringIO.StringIO
in this case (typically just for Gentoo's stage1 and stage2 tarballs).
Now that python-2.7 is stable in stages and we rely on io.open() being
available, we can also rely on io.StringIO being available.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This fixes a regression reported in bug 365033, comment #14.
|
| |
|
|
|
|
|
| |
This prevents false positives for private libraries installed by
pre-built packages under /opt.
|
| |
|
|
|
|
|
|
|
|
|
| |
For backslash expansion, this function used to behave like echo
-e, but that's not needed for our purposes. We want to behave like
bash does when expanding a variable assignment in a sourced file,
in which case it performs backslash removal for \\ and \$ but nothing
more. This will fix bash compatibility for the case reported in
bug #365033.
|
| |
|
| |
|
|
|
|
|
|
| |
We want to force new_protect_filename to ensure that the user will see
all our changes via etc-update, even if file_to_write_to doesn't exist
yet.
|
|
|
|
| |
Also, fix calling code to handle InvalidLocation exceptions.
|
|
|
|
|
| |
We don't have any code that checks the writedict return value, so we'd
better raise an exception if it fails.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will fix the following error, reported in bug #339670:
_ebuild_exit
_post_phase_userpriv_perms(settings)
File "/usr/lib64/portage/pym/portage/package/ebuild/doebuild.py", line 1207,
in _post_phase_userpriv_perms
filemode=0o60, filemask=0)
File "/usr/lib64/portage/pym/portage/util/__init__.py", line 1018, in
apply_recursive_permissions
uid=uid, gid=gid, mode=filemode, mask=filemask)
File "/usr/lib64/portage/pym/portage/util/__init__.py", line 1043, in
apply_secpass_permissions
stat_cached = os.stat(filename)
File "/usr/lib64/portage/pym/portage/__init__.py", line 226, in __call__
rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 40] Too many levels of symbolic links:
'/var/tmp/portage/dev-vcs/mercurial-1.7.2/temp/tests-2.7/child0/test-mq-symlinks.t/linka'
|
| |
|
| |
|
| |
|
|
|
|
| |
portage.util.grabfile_package().
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
In python-2.7, changes in deepcopy() make LazyItemsDict.__deepcopy__()
fail in some cases. Thanks to Diego E. Pettenò <flameeyes@g.o> for
reporting.
|
|
|
|
| |
It's now possible for an repo to revert masks from the master for its own packages.
|
| |
|