##// END OF EJS Templates
Split logic onto multiple lines.
Jonathan Frederic -
Show More
@@ -111,9 +111,12 b' def _verify_node(cmd):'
111 try:
111 try:
112 out, err, return_code = get_output_error_code([cmd, '--version'])
112 out, err, return_code = get_output_error_code([cmd, '--version'])
113 except OSError:
113 except OSError:
114 # Command not found
114 # Command not found
115 return False
115 return False
116 return return_code == 0 and check_version(out.lstrip('v'), '0.9.12')
116 if return_code:
117 # Command error
118 return False
119 return check_version(out.lstrip('v'), '0.9.12')
117
120
118 # prefer md2html via marked if node.js >= 0.9.12 is available
121 # prefer md2html via marked if node.js >= 0.9.12 is available
119 # node is called nodejs on debian, so try that first
122 # node is called nodejs on debian, so try that first
General Comments 0
You need to be logged in to leave comments. Login now