From 2b6bac2b731ea2827bbd035399bda70d1d9c15e4 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 27 Mar 2025 21:45:32 -0700 Subject: [PATCH] radicale: Rerun setup when package updated Closes: #2501 Tests: - Install radicale app. - Install a sample package using apt. Trigger will be run and but will not result in radicale setup rerun. - Make newer radicale available. This can be done by enabling testing distribution but setting its priority low. radicale priority from testing will be set to high. When unattened-upgrades is run, it will trigger the FreedomBox mechanism and will result in database upgrade. - After this install a sample package using apt. Trigger will be run but will not result in radicale setup rerun. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/radicale/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/radicale/__init__.py b/plinth/modules/radicale/__init__.py index 6895f4386..b5d88505e 100644 --- a/plinth/modules/radicale/__init__.py +++ b/plinth/modules/radicale/__init__.py @@ -67,7 +67,8 @@ class RadicaleApp(app_module.App): tags=info.tags, login_required=True) self.add(shortcut) - packages = Packages('packages-radicale', ['radicale']) + packages = Packages('packages-radicale', ['radicale'], + rerun_setup_on_upgrade=True) self.add(packages) dropin_configs = DropinConfigs('dropin-configs-radicale', [