From cd89a854ab0abde82c3335cbb2496c28a7eabace Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Fri, 26 Jan 2018 00:38:04 +0100 Subject: [bug] don't check for updates on polkit just for its existence We don't update the polkit file normally, for now let's check if it's installed. It should be more clever, detecting wich file is needed, depending on wich bitmask-root will be executed. But for now it's just a dummy check. --- src/leap/bitmask/vpn/helpers/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/leap/bitmask/vpn/helpers/__init__.py b/src/leap/bitmask/vpn/helpers/__init__.py index b0f6990f..c8dfb662 100644 --- a/src/leap/bitmask/vpn/helpers/__init__.py +++ b/src/leap/bitmask/vpn/helpers/__init__.py @@ -56,9 +56,8 @@ if IS_LINUX: helper = _is_up_to_date(_config.get_bitmask_helper_path(), BITMASK_ROOT_LOCAL, BITMASK_ROOT_SYSTEM) - polkit = _is_up_to_date(_config.get_bitmask_polkit_policy_path(), - POLKIT_LOCAL, - POLKIT_SYSTEM) + polkit = (os.path.exists(POLKIT_LOCAL) or + os.path.exists(POLKIT_SYSTEM)) openvpn = (os.path.exists(OPENVPN_SYSTEM) or _is_up_to_date(_config.get_bitmask_openvpn_path(), OPENVPN_LOCAL, "")) -- cgit v1.2.3