mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix "Welcome" for upgrading
This commit is contained in:
@ -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 ...",
|
||||||
|
Reference in New Issue
Block a user