Commit 66a62319 by Sundar Raman

Further syntax fix work on Python2.4

The `val if something else something-else` syntax does not work prior to 2.5.
parent 9ad91d73
......@@ -175,7 +175,10 @@ def main():
(not installed and state == 'present'))
if changed:
full_name = _get_full_name(name, version) if state == 'present' else name
if state == 'present':
full_name = _get_full_name(name, version)
else:
full_name = name
cmd = '%s %s %s' % (PIP, command_map[state], full_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment