Browse Source

Do not modify permissions for dirs

dskor 1 year ago
parent
commit
8bf60a95b2
1 changed files with 1 additions and 4 deletions
  1. 1 4
      build/scripts/fetch_from.py

+ 1 - 4
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)