Prevent installation tasks having postpone=False from running twice

This commit is contained in:
Thomas Nagy 2015-07-07 20:58:58 +02:00
parent 1427497785
commit 140453a959
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 1 additions and 0 deletions

View File

@ -1015,6 +1015,7 @@ class InstallContext(BuildContext):
if tsk.runnable_status() == Task.ASK_LATER:
raise self.WafError('cannot post the task %r' % tsk)
tsk.run()
tsk.hasrun = True
def install_files(self, dest, files, env=None, chmod=Utils.O644, relative_trick=False, cwd=None, add=True, postpone=True, task=None):
"""