commit: eb98fa8b23e748b19af4783e0d6b6f61a24bfccf
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 25 17:39:21 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 25 17:39:21 2022 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=eb98fa8b
Use os.access instead of snakeoil.osutils.access
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
src/pkgcore/binpkg/repository.py | 4 ++--
src/pkgcore/ebuild/portage_conf.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/pkgcore/binpkg/repository.py b/src/pkgcore/binpkg/repository.py
index 02e3a1ebc..fba61df3a 100644
--- a/src/pkgcore/binpkg/repository.py
+++ b/src/pkgcore/binpkg/repository.py
@@ -11,7 +11,7 @@ from snakeoil import chksum, compression
from snakeoil.data_source import data_source, local_source
from snakeoil.klass import alias_attr, jit_attr, jit_attr_named
from snakeoil.mappings import DictMixin, StackedDict
-from snakeoil.osutils import access, listdir_dirs, listdir_files, pjoin
+from snakeoil.osutils import listdir_dirs, listdir_files, pjoin
from ..config.hint import ConfigHint
from ..ebuild import ebd, ebuild_built
@@ -220,7 +220,7 @@ class tree(prototype.tree):
self._versions_tmp_cache = {}
# XXX rewrite this when snakeoil.osutils grows an access equivalent.
- if not access(self.base, os.X_OK | os.R_OK):
+ if not os.access(self.base, os.X_OK | os.R_OK):
# either it doesn't exist, or we don't have perms.
if not os.path.exists(self.base):
raise errors.InitializationError(f"base {self.base!r} doesn't
exist")
diff --git a/src/pkgcore/ebuild/portage_conf.py
b/src/pkgcore/ebuild/portage_conf.py
index 39022b753..c90f09c6a 100644
--- a/src/pkgcore/ebuild/portage_conf.py
+++ b/src/pkgcore/ebuild/portage_conf.py
@@ -16,7 +16,7 @@ from collections import OrderedDict
from snakeoil.bash import read_bash_dict
from snakeoil.compatibility import IGNORED_EXCEPTIONS
from snakeoil.mappings import DictMixin, ImmutableDict
-from snakeoil.osutils import access, listdir_files, pjoin
+from snakeoil.osutils import listdir_files, pjoin
from .. import const
from .. import exceptions as base_errors
@@ -560,7 +560,7 @@ class PortageConfig(DictMixin):
while not os.path.exists(cache_parent_dir):
cache_parent_dir = os.path.dirname(cache_parent_dir)
- readonly = (not access(cache_parent_dir, os.W_OK | os.X_OK))
+ readonly = (not os.access(cache_parent_dir, os.W_OK | os.X_OK))
return basics.AutoConfigSection({
'class': kls,