forked from platformio/platformio-core
Don’t update development platforms after PIO upgrade
This commit is contained in:
@ -154,17 +154,12 @@ def after_upgrade(ctx):
|
|||||||
if last_version == "0.0.0":
|
if last_version == "0.0.0":
|
||||||
app.set_state_item("last_version", __version__)
|
app.set_state_item("last_version", __version__)
|
||||||
else:
|
else:
|
||||||
click.secho("Please wait while upgrading PlatformIO ...", fg="yellow")
|
click.secho("Please wait while upgrading PlatformIO...", fg="yellow")
|
||||||
app.clean_cache()
|
app.clean_cache()
|
||||||
u = Upgrader(last_version, __version__)
|
u = Upgrader(last_version, __version__)
|
||||||
if u.run(ctx):
|
if u.run(ctx):
|
||||||
app.set_state_item("last_version", __version__)
|
app.set_state_item("last_version", __version__)
|
||||||
|
|
||||||
# update development platforms
|
|
||||||
pm = PlatformManager()
|
|
||||||
for manifest in pm.get_installed():
|
|
||||||
pm.update(manifest['__pkg_dir'])
|
|
||||||
|
|
||||||
# update PlatformIO Plus tool if installed
|
# update PlatformIO Plus tool if installed
|
||||||
pioplus_update()
|
pioplus_update()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user