diff options
author | dskor <dskor@yandex-team.com> | 2023-03-24 11:10:12 +0300 |
---|---|---|
committer | dskor <dskor@yandex-team.com> | 2023-03-24 11:10:12 +0300 |
commit | 8bf60a95b267388c669402cf85d8236671a6a4c0 (patch) | |
tree | 2ce1d273eef0ed76e3b320dcfd2f5078bc711c75 /build | |
parent | 1fe76182b67548e4e141d495ba5be3c19940176b (diff) | |
download | ydb-8bf60a95b267388c669402cf85d8236671a6a4c0.tar.gz |
Do not modify permissions for dirs
Diffstat (limited to 'build')
-rwxr-xr-x | build/scripts/fetch_from.py | 5 |
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) |