diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-01-26 00:38:04 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-01-26 14:55:07 +0100 |
commit | cd89a854ab0abde82c3335cbb2496c28a7eabace (patch) | |
tree | 8cf5239694b822b72354174692057d8d72340d60 /src/leap/bitmask | |
parent | bc3ac1d2d8909baa87fce0459f9038ae49ed2257 (diff) |
[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.
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/vpn/helpers/__init__.py | 5 |
1 files 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, "")) |