Allow to update only the PIO Core packages

This commit is contained in:
Ivan Kravets
2017-03-27 14:14:29 +03:00
parent b7a61f12e8
commit e736b08a49
5 changed files with 18 additions and 11 deletions

View File

@@ -59,8 +59,6 @@ def on_platformio_start(ctx, force, caller):
app.set_session_var("caller_id", caller)
telemetry.on_command()
if ctx.args and ctx.args[0] == "update":
app.clean_cache()
if not in_silence(ctx):
after_upgrade(ctx)
@@ -159,7 +157,7 @@ def after_upgrade(ctx):
app.clean_cache()
# Update PlatformIO's Core packages
update_core_packages()
update_core_packages(silent=True)
u = Upgrader(last_version, __version__)
if u.run(ctx):