From c6e4a4ceccffca33eb1178086d546bc4339384dc Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 15 Jun 2020 13:48:53 -0700 Subject: [PATCH] matrixsynapse: Handle upgrade to versions 1.15.x - Comparison of dependencies of Debian packages for versions 1.13.0 and 1.15.0 show that there no new dependencies and no increase in version requirements for dependencies. Hence changes to backports pin priorities is not needed. Tests executed: - Install older version of matrix-synapse. Run unattended upgrades. It will refuse to upgrade matrix-synapse. - Run freedombox, and run apt update, the upgrade for matrix-synapse is performed by freedombox. The setting for MAM is kept during the upgrade. Signed-off-by: Sunil Mohan Adapa Tested-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/matrixsynapse/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/matrixsynapse/__init__.py b/plinth/modules/matrixsynapse/__init__.py index decf2d795..fcc388e89 100644 --- a/plinth/modules/matrixsynapse/__init__.py +++ b/plinth/modules/matrixsynapse/__init__.py @@ -130,9 +130,9 @@ def force_upgrade(helper, packages): if 'matrix-synapse' not in packages: return False - # Allow any lower version to upgrade to 1.12.* + # Allow any lower version to upgrade to 1.15.* package = packages['matrix-synapse'] - if Version(package['new_version']) > Version('1.13~'): + if Version(package['new_version']) > Version('1.16~'): return False public_registration_status = get_public_registration_status()