Skip to content

Commit

Permalink
fix(update): installation from versions older than 2.18 is not supported
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Leclerc <[email protected]>
  • Loading branch information
sylvlecl committed Nov 22, 2024
1 parent 6f1ba46 commit ea491f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/antares_web_installer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ def install_files(self):
# check app version
old_version = self.check_version()
logger.info(f"Old application version : {old_version}.")
version_info = tuple(map(int, old_version.split(".")))
if version_info < (2, 18):
raise InstallError(
f"Trying to update from version ${old_version}: updating from version older than 2.18 is not supported, please select a new installation directory.")
self.update_progress(25)

# update config file
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/server_mock/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Define the server configuration
HOST = "127.0.0.1"
PORT = 8080
VERSION = "2.14.4"
VERSION = "2.18.0"


def main():
Expand Down

0 comments on commit ea491f8

Please sign in to comment.