From d3d7e233e3a5bc3c32356b66990f9be5d48158a2 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Wed, 28 Dec 2022 11:19:11 -0500 Subject: [PATCH] janus: Allow upgrade to 1.1 Closes: #2303. Tests: - In testing container, install Janus. - Downgrade janus package to 1.0.1-1. - Manually re-run janus setup action. - Run "apt update". - janus is upgraded to 1.1.1-1, and rtp_port_range is set in /etc/janus/janus.jcfg. Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- plinth/modules/janus/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/janus/__init__.py b/plinth/modules/janus/__init__.py index 734fb7368..eb18c2a42 100644 --- a/plinth/modules/janus/__init__.py +++ b/plinth/modules/janus/__init__.py @@ -97,9 +97,9 @@ class JanusApp(app_module.App): if 'janus' not in packages: return False - # Allow upgrades within 1.0.* + # Allow upgrades within 1.0.* and 1.1.* package = packages['janus'] - if Version(package['new_version']) > Version('1.1~'): + if Version(package['new_version']) > Version('1.2~'): return False install(['janus'], force_configuration='new')