diff --git a/library/pip b/library/pip index 2e75cbb69e..162e3d08a1 100755 --- a/library/pip +++ b/library/pip @@ -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)