From 13dbfeb8eecf941e2025bb326a0820cb391cbfd0 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Mon, 9 Nov 2020 23:58:44 +0100 Subject: [PATCH] always uninstall everything we might have installed --- pyinotifyd/_install.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pyinotifyd/_install.py b/pyinotifyd/_install.py index 5b7cf45..717a667 100755 --- a/pyinotifyd/_install.py +++ b/pyinotifyd/_install.py @@ -155,12 +155,8 @@ def uninstall(name): pkg_dir = os.path.dirname(__file__) - if _check_systemd(): - _uninstall_files(_systemd_files(pkg_dir, name)) - - if _check_openrc(): - _uninstall_files(_openrc_files(pkg_dir, name)) - + _uninstall_files(_systemd_files(pkg_dir, name)) + _uninstall_files(_openrc_files(pkg_dir, name)) _uninstall_files(_config_files(pkg_dir, name)) _delete_dir(f"/etc/{name}")