Disable packages/libs updating while "upgrade" operation // Resolve #214

This commit is contained in:
Ivan Kravets
2015-05-25 22:50:46 +03:00
parent bcf0cc26aa
commit 7649769437
2 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
VERSION = (2, 0, "1.dev0")
VERSION = (2, 0, "1.dev1")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@ -3,6 +3,7 @@
import re
import struct
import sys
from os import remove
from os.path import isdir, isfile, join
from shutil import rmtree
@ -25,6 +26,11 @@ from platformio.util import get_home_dir
def on_platformio_start(ctx, force):
app.set_session_var("force_option", force)
telemetry.on_command(ctx)
# skip any check operations when upgrade process
if len(sys.argv) > 1 and sys.argv[1] == "upgrade":
return
after_upgrade(ctx)
try: