2
0
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:
Ivan Tubert-Brohman 2016-01-25 10:25:01 -05:00 committed by Thomas Nagy
parent 4dac0ea283
commit 2a7e0de018
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -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