#NEWLINE# @ classmethod #NEWLINE# def wrap_strace( cls , task ) : #NEWLINE# #INDENT# 'wrap task actions into strace command' #NEWLINE# wrapped_actions = [ ] #NEWLINE# for action in task . actions : #NEWLINE# #INDENT# if isinstance ( action , CmdAction ) : #NEWLINE# #INDENT# cmd = ( cls . TRACE_CMD % ( action . _action , cls . TRACE_OUT ) ) #NEWLINE# wrapped = CmdAction ( cmd , task , save_out = action . save_out ) #NEWLINE# wrapped_actions . append ( wrapped ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# wrapped_actions . append ( action ) #NEWLINE# #UNINDENT# #UNINDENT# task . _action_instances = wrapped_actions #NEWLINE# task . _extend_uptodate ( [ False ] )