Don't show obsolate version in =dev mode

This commit is contained in:
Ivan Kravets
2014-12-01 16:33:35 +02:00
parent e49d4e2722
commit ddab7046ca

View File

@ -130,7 +130,9 @@ def check_platformio_upgrade():
app.set_state_item("last_check", last_check)
latest_version = get_latest_version()
if latest_version == __version__:
if (latest_version == __version__ or
Upgrader.version_to_int(latest_version) <
Upgrader.version_to_int(__version__)):
return
click.secho("There is a new version %s of PlatformIO available.\n"