Do not update automatically Core packages while upgrading PIO Core

This commit is contained in:
Ivan Kravets
2017-12-19 15:38:32 +02:00
parent 39dfbbdd87
commit 06574e3066
2 changed files with 2 additions and 10 deletions

View File

@ -19,16 +19,12 @@ import requests
from platformio import VERSION, __version__, exception, util
from platformio.commands.home import shutdown_servers
from platformio.managers.core import update_core_packages
@click.command(
"upgrade", short_help="Upgrade PlatformIO to the latest version")
@click.option("--dev", is_flag=True, help="Use development branch")
def cli(dev):
# Update PlatformIO's Core packages
update_core_packages(silent=True)
if not dev and __version__ == get_latest_version():
return click.secho(
"You're up-to-date!\nPlatformIO %s is currently the "