From b51ed200f75e758187d9e81557c29c7f6797e393 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 6 Jun 2023 10:31:15 -0700 Subject: [PATCH] deluge: Utilize purging of packages and don't remove explicitly Tests: - None. deluge is not installable. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/deluge/privileged.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plinth/modules/deluge/privileged.py b/plinth/modules/deluge/privileged.py index 186739e19..59a6fe891 100644 --- a/plinth/modules/deluge/privileged.py +++ b/plinth/modules/deluge/privileged.py @@ -160,7 +160,6 @@ def _wait_for_configuration(service, file_name): @privileged def uninstall(): """Remove configuration and service files.""" - for item in DELUGED_DEFAULT_FILE, DELUGE_WEB_SYSTEMD_SERVICE_PATH: - pathlib.Path(item).unlink(missing_ok=True) - + # /etc/default/deluged is removed on purge + pathlib.Path(DELUGE_WEB_SYSTEMD_SERVICE_PATH).unlink(missing_ok=True) shutil.rmtree(DELUGE_CONF_DIR, ignore_errors=True)