Fix invalid params order when installing PIO Core without PIP Cache

This commit is contained in:
Ivan Kravets
2017-09-02 14:43:08 +03:00
parent 3afac476e5
commit ccd650dda0

View File

@ -125,7 +125,7 @@ def install_platformio():
r = exec_python_cmd(cmd) r = exec_python_cmd(cmd)
assert r['returncode'] == 0 assert r['returncode'] == 0
except AssertionError: except AssertionError:
cmd.insert(1, "--no-cache-dir") cmd.insert(2, "--no-cache-dir")
r = exec_python_cmd(cmd) r = exec_python_cmd(cmd)
if r: if r:
print_exec_result(r) print_exec_result(r)