forked from platformio/platformio-core
Notify about multiple installations of PIO Core // Resolve #961
This commit is contained in:
@ -12,7 +12,7 @@ PlatformIO 3.0
|
|||||||
- 100+ boards
|
- 100+ boards
|
||||||
- Multiple architectures and development platforms
|
- Multiple architectures and development platforms
|
||||||
- Zero Configuration
|
- Zero Configuration
|
||||||
- Compatibility with the popular IDEs: Eclipse, Atom, VSCode, Sublime Text, etc
|
- Compatibility with the popular IDEs: Atom, VSCode, Eclipse, Sublime Text, etc
|
||||||
- Windows, MacOS, Linux (+ARMv6-8)
|
- Windows, MacOS, Linux (+ARMv6-8)
|
||||||
|
|
||||||
* Project generator for `VIM <http://docs.platformio.org/page/ide/vim.html>`__
|
* Project generator for `VIM <http://docs.platformio.org/page/ide/vim.html>`__
|
||||||
@ -21,6 +21,8 @@ PlatformIO 3.0
|
|||||||
(`issue #889 <https://github.com/platformio/platformio-core/issues/889>`_)
|
(`issue #889 <https://github.com/platformio/platformio-core/issues/889>`_)
|
||||||
* Handle dynamic ``SRC_FILTER`` environment variable from
|
* Handle dynamic ``SRC_FILTER`` environment variable from
|
||||||
`library.json extra script <http://docs.platformio.org/page/librarymanager/config.html#extrascript>`__
|
`library.json extra script <http://docs.platformio.org/page/librarymanager/config.html#extrascript>`__
|
||||||
|
* Notify about multiple installations of PIO Core
|
||||||
|
(`issue #961 <https://github.com/platformio/platformio-core/issues/961>`_)
|
||||||
* Improved auto-detecting of mbed-enabled media disks
|
* Improved auto-detecting of mbed-enabled media disks
|
||||||
* Automatically update Git-submodules for development platforms and libraries
|
* Automatically update Git-submodules for development platforms and libraries
|
||||||
that were installed from repository
|
that were installed from repository
|
||||||
|
2
docs
2
docs
Submodule docs updated: 2c942c080b...f49813d110
@ -156,12 +156,29 @@ class Upgrader(object):
|
|||||||
|
|
||||||
|
|
||||||
def after_upgrade(ctx):
|
def after_upgrade(ctx):
|
||||||
|
terminal_width, _ = click.get_terminal_size()
|
||||||
last_version = app.get_state_item("last_version", "0.0.0")
|
last_version = app.get_state_item("last_version", "0.0.0")
|
||||||
if last_version == __version__:
|
if last_version == __version__:
|
||||||
return
|
return
|
||||||
|
|
||||||
if last_version == "0.0.0":
|
if last_version == "0.0.0":
|
||||||
app.set_state_item("last_version", __version__)
|
app.set_state_item("last_version", __version__)
|
||||||
|
elif semantic_version.Version.coerce(util.pepver_to_semver(
|
||||||
|
last_version)) > semantic_version.Version.coerce(
|
||||||
|
util.pepver_to_semver(__version__)):
|
||||||
|
click.secho("*" * terminal_width, fg="yellow")
|
||||||
|
click.secho(
|
||||||
|
"Obsolete PIO Core v%s is used (previous was %s)" %
|
||||||
|
(__version__, last_version),
|
||||||
|
fg="yellow")
|
||||||
|
click.secho(
|
||||||
|
"Please remove multiple PIO Cores from a system:", fg="yellow")
|
||||||
|
click.secho(
|
||||||
|
"http://docs.platformio.org/page/faq.html"
|
||||||
|
"#multiple-pio-cores-in-a-system",
|
||||||
|
fg="cyan")
|
||||||
|
click.secho("*" * terminal_width, fg="yellow")
|
||||||
|
return
|
||||||
else:
|
else:
|
||||||
click.secho("Please wait while upgrading PlatformIO...", fg="yellow")
|
click.secho("Please wait while upgrading PlatformIO...", fg="yellow")
|
||||||
app.clean_cache()
|
app.clean_cache()
|
||||||
@ -185,7 +202,6 @@ def after_upgrade(ctx):
|
|||||||
click.echo("")
|
click.echo("")
|
||||||
|
|
||||||
# PlatformIO banner
|
# PlatformIO banner
|
||||||
terminal_width, _ = click.get_terminal_size()
|
|
||||||
click.echo("*" * terminal_width)
|
click.echo("*" * terminal_width)
|
||||||
click.echo("If you like %s, please:" % (click.style(
|
click.echo("If you like %s, please:" % (click.style(
|
||||||
"PlatformIO", fg="cyan")))
|
"PlatformIO", fg="cyan")))
|
||||||
|
Reference in New Issue
Block a user