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 <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2020-06-15 13:48:53 -07:00 committed by James Valleroy
parent 966ceb5871
commit c6e4a4cecc
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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()