forked from platformio/platformio-core
Fix an exception during platformio upgrade
under Windows OS // Resolve #45
This commit is contained in:
@ -5,6 +5,7 @@ Release History
|
|||||||
------------------
|
------------------
|
||||||
|
|
||||||
* Fixed an issue with ``--json-output`` (`issue #42 <https://github.com/ivankravets/platformio/issues/42>`_)
|
* Fixed an issue with ``--json-output`` (`issue #42 <https://github.com/ivankravets/platformio/issues/42>`_)
|
||||||
|
* Fixed an exception during `platformio upgrade <http://docs.platformio.org/en/latest/userguide/cmd_upgrade.html>`__ under Windows OS (`issue #45 <https://github.com/ivankravets/platformio/issues/45>`_)
|
||||||
|
|
||||||
0.10.1 (2015-01-02)
|
0.10.1 (2015-01-02)
|
||||||
-------------------
|
-------------------
|
||||||
|
@ -23,9 +23,19 @@ def cli():
|
|||||||
"newest version available." % __version__, fg="green"
|
"newest version available." % __version__, fg="green"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
result = exec_command(["pip", "install", "--upgrade", "platformio"])
|
click.secho("Please wait while upgrading PlatformIO ...",
|
||||||
click.secho(result['out'], fg="green")
|
fg="yellow")
|
||||||
click.secho(result['err'], fg="red")
|
|
||||||
|
pip_result = exec_command(["pip", "install", "--upgrade",
|
||||||
|
"platformio"])
|
||||||
|
pio_result = exec_command(["platformio", "--version"])
|
||||||
|
|
||||||
|
if last in pio_result['out'].strip():
|
||||||
|
click.secho("PlatformIO has been successfully upgraded to %s" %
|
||||||
|
last, fg="green")
|
||||||
|
else:
|
||||||
|
click.secho(pip_result['out'], fg="green")
|
||||||
|
click.secho(pip_result['err'], fg="red")
|
||||||
|
|
||||||
|
|
||||||
def get_latest_version():
|
def get_latest_version():
|
||||||
|
Reference in New Issue
Block a user