aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authordskor <dskor@yandex-team.com>2023-03-24 11:10:12 +0300
committerdskor <dskor@yandex-team.com>2023-03-24 11:10:12 +0300
commit8bf60a95b267388c669402cf85d8236671a6a4c0 (patch)
tree2ce1d273eef0ed76e3b320dcfd2f5078bc711c75 /build
parent1fe76182b67548e4e141d495ba5be3c19940176b (diff)
downloadydb-8bf60a95b267388c669402cf85d8236671a6a4c0.tar.gz
Do not modify permissions for dirs
Diffstat (limited to 'build')
-rwxr-xr-xbuild/scripts/fetch_from.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/build/scripts/fetch_from.py b/build/scripts/fetch_from.py
index 34d0d8baef..78306d1794 100755
--- a/build/scripts/fetch_from.py
+++ b/build/scripts/fetch_from.py
@@ -317,12 +317,9 @@ def process(fetched_file, file_name, args, remove=True):
# make all read only
if fetched_file_is_dir:
- chmod(fetched_file, 0o555)
- for root, dirs, files in os.walk(fetched_file):
+ for root, _, files in os.walk(fetched_file):
for filename in files:
chmod(os.path.join(root, filename), 0o444)
- for dirname in dirs:
- chmod(os.path.join(root, dirname), 0o555)
else:
chmod(fetched_file, 0o444)