Don't allow @OUTPUT@ when capturing output.

This commit is contained in:
Elliott Sales de Andrade 2016-08-24 15:47:07 -04:00
parent acdcc3ccf2
commit 3e09aa9f11
1 changed files with 3 additions and 0 deletions

View File

@ -1015,6 +1015,9 @@ class CustomTarget:
else:
raise InvalidArguments('Argument %s in "command" is invalid.' % i)
self.command = final_cmd
if self.capture and '@OUTPUT@' in self.command:
raise InvalidArguments(
'@OUTPUT@ is not allowed when capturing output.')
if 'install' in kwargs:
self.install = kwargs['install']
if not isinstance(self.install, bool):