mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 03:39:53 +01:00
Do chmod in netcache post_run
This ensures that, for example, executable files that are fetched from the cache end up with the right permissions.
This commit is contained in:
parent
4dac0ea283
commit
2a7e0de018
@ -332,6 +332,9 @@ def make_cached(cls):
|
||||
ret = m2(self)
|
||||
if bld.cache_global:
|
||||
self.put_files_cache()
|
||||
if hasattr(self, 'chmod'):
|
||||
for node in self.outputs:
|
||||
os.chmod(node.abspath(), self.chmod)
|
||||
return ret
|
||||
cls.post_run = post_run
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user