def execute(self, args, cwd): # Handle --rebuild if args.rebuild: if not commandutil.clean_output(cwd): return False (result, all_target_outputs) = commandutil.run_build(cwd, args) print 'result %s, %s outputs' % (result, len(all_target_outputs)) #print all_target_outputs return 0 if result else 1
def execute(self, args, cwd): result = commandutil.clean_output(cwd) return 0 if result else 1