diff --git a/platformio/maintenance.py b/platformio/maintenance.py index f0f2123f..462c482c 100644 --- a/platformio/maintenance.py +++ b/platformio/maintenance.py @@ -51,7 +51,7 @@ class Upgrader(object): return True result = [True] - for v in (90, ): + for v in (90, 110): if self.from_version >= v: continue result.append(getattr(self, "_upgrade_to_%d" % v)(ctx)) @@ -79,6 +79,12 @@ class Upgrader(object): 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): if app.get_state_item("last_version", None) == __version__: