chmod in the build directory with features=subst

This commit is contained in:
Thomas Nagy 2011-11-23 21:36:16 +01:00
parent a75f3c73d6
commit 4bb4ff5993
1 changed files with 3 additions and 0 deletions

View File

@ -674,6 +674,9 @@ class subst_pc(Task.Task):
try: delattr(self, 'cache_sig')
except AttributeError: pass
if getattr(self.generator, 'chmod', None):
os.chmod(self.outputs[0].abspath(), self.generator.chmod)
def sig_vars(self):
"""
Compute a hash (signature) of the variables used in the substitution