From 2a7e0de0185f62db95622bd9abe76ab69aae60cd Mon Sep 17 00:00:00 2001 From: Ivan Tubert-Brohman Date: Mon, 25 Jan 2016 10:25:01 -0500 Subject: [PATCH] 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. --- waflib/extras/netcache_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/waflib/extras/netcache_client.py b/waflib/extras/netcache_client.py index af9b8c9a..d1741237 100644 --- a/waflib/extras/netcache_client.py +++ b/waflib/extras/netcache_client.py @@ -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