summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-09-28 13:23:16 +0200
committerMichał Górny <mgorny@gentoo.org>2021-09-28 13:23:16 +0200
commit773ba1701f94bdd46086d294efcf97985b67841d (patch)
tree03ed65d27d2976585d1909a577f1f3a3207790d3
parentRevert "prepare_build_dirs: Fix copytree() on Python 3.7" (diff)
downloadportage-773ba1701f94bdd46086d294efcf97985b67841d.tar.gz
portage-773ba1701f94bdd46086d294efcf97985b67841d.tar.bz2
portage-773ba1701f94bdd46086d294efcf97985b67841d.zip
Attempt to fix creating FILESDIR properly
Since we perform a mode fixup on FILESDIR anyway, just let copytree() create it. This should finally fix all the problems: have the directory created without errors and work with Python < 3.8. Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--lib/portage/package/ebuild/prepare_build_dirs.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/portage/package/ebuild/prepare_build_dirs.py b/lib/portage/package/ebuild/prepare_build_dirs.py
index 0ae93a1d5..41de1a3a9 100644
--- a/lib/portage/package/ebuild/prepare_build_dirs.py
+++ b/lib/portage/package/ebuild/prepare_build_dirs.py
@@ -480,7 +480,6 @@ def _ensure_log_subdirs(logdir, subdir):
def _prepare_fake_filesdir(settings):
real_filesdir = settings["O"] + "/files"
filesdir = settings["FILESDIR"]
- portage.util.ensure_dirs(filesdir, mode=0o755)
# Copy files from real directory to ebuild directory (without metadata).
if os.path.isdir(real_filesdir):