Fix "Welcome" for upgrading

This commit is contained in:
Ivan Kravets
2015-02-24 12:47:12 +02:00
parent 1fc85d3d1d
commit 7948237c94

View File

@ -99,7 +99,8 @@ class Upgrader(object):
def after_upgrade(ctx): def after_upgrade(ctx):
if app.get_state_item("last_version", None) == __version__: last_version = app.get_state_item("last_version", "0.0.0")
if last_version == __version__:
return return
# promotion # promotion
@ -118,8 +119,8 @@ def after_upgrade(ctx):
)) ))
click.secho("Thanks a lot!\n", fg="green") click.secho("Thanks a lot!\n", fg="green")
last_version = app.get_state_item("last_version", "0.0.0")
if last_version == "0.0.0": if last_version == "0.0.0":
app.set_state_item("last_version", __version__)
return return
click.secho("Please wait while upgrading PlatformIO ...", click.secho("Please wait while upgrading PlatformIO ...",