Maintain upgrading to 0.11.0

This commit is contained in:
Ivan Kravets
2015-02-03 18:45:07 +02:00
parent 2a84aec59e
commit a9781293f9

View File

@ -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__: