mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Maintain upgrading to 0.11.0
This commit is contained in:
@ -51,7 +51,7 @@ class Upgrader(object):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
result = [True]
|
result = [True]
|
||||||
for v in (90, ):
|
for v in (90, 110):
|
||||||
if self.from_version >= v:
|
if self.from_version >= v:
|
||||||
continue
|
continue
|
||||||
result.append(getattr(self, "_upgrade_to_%d" % v)(ctx))
|
result.append(getattr(self, "_upgrade_to_%d" % v)(ctx))
|
||||||
@ -79,6 +79,12 @@ class Upgrader(object):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def _upgrade_to_110(self, ctx): # pylint: disable=R0201
|
||||||
|
# install "ldscripts" package
|
||||||
|
if "titiva" in PlatformFactory.get_platforms().keys():
|
||||||
|
ctx.invoke(cmd_install, platforms=["titiva"])
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
def after_upgrade(ctx):
|
def after_upgrade(ctx):
|
||||||
if app.get_state_item("last_version", None) == __version__:
|
if app.get_state_item("last_version", None) == __version__:
|
||||||
|
Reference in New Issue
Block a user