From 9cec959cd167b9c6d76f2479f221054014991c88 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Tue, 31 Jan 2023 09:43:01 -0500 Subject: [PATCH] searx: Add libjs-bootstrap to packages libjs-bootstrap is a transitive dependency of searx package. It is also listed as a package to be installed by Janus app. This is a quick fix to prevent accidental uninstall of searx package, when Janus app is uninstalled. Closes #2298. Tests: - Install Searx. - Install Janus, and then uninstall it. searx package is still installed. Searx diagnostics are passed. Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- plinth/modules/searx/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plinth/modules/searx/__init__.py b/plinth/modules/searx/__init__.py index 9a51a9f2c..f0b0fafc9 100644 --- a/plinth/modules/searx/__init__.py +++ b/plinth/modules/searx/__init__.py @@ -57,7 +57,9 @@ class SearxApp(app_module.App): allowed_groups=list(groups)) self.add(shortcut) - packages = Packages('packages-searx', ['searx']) + # Include libjs-bootstrap to prevent accidental uninstall (see + # issue #2298). + packages = Packages('packages-searx', ['searx', 'libjs-bootstrap']) self.add(packages) firewall = Firewall('firewall-searx', info.name,