summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-03-14 19:44:49 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2017-03-15 19:05:34 +0100
commit86c9ae95e847d8025214427585ffee0d7fb553a8 (patch)
tree6780e0689a7bfe8dee371cfa54d87952ea8bdcee /src
parent72350b78a14dc5fd8d63b41b86a2394e9e898b15 (diff)
[tests] let's include OSX CI
Diffstat (limited to 'src')
-rw-r--r--src/leap/bitmask/util.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/bitmask/util.py b/src/leap/bitmask/util.py
index 5955128..3a7bacd 100644
--- a/src/leap/bitmask/util.py
+++ b/src/leap/bitmask/util.py
@@ -67,7 +67,8 @@ def get_gpg_bin_path():
os.path.join(here(), "..", "apps", "mail", "gpg"))
else:
try:
- gpgbin_options = which("gpg", path_extension='/usr/bin/')
+ path_ext = '/usr/bin/:/usr/local/opt/gnupg/bin/'
+ gpgbin_options = which("gpg", path_extension=path_ext)
# gnupg checks that the path to the binary is not a
# symlink, so we need to filter those and come up with
# just one option.
@@ -89,7 +90,8 @@ def get_gpg_bin_path():
# binary, in case it was renamed using dpkg-divert or manually.
# We could just pick gpg2, but we need to solve #7564 first.
try:
- gpgbin_options = which("gpg1", path_extension='/usr/bin')
+ path_ext = '/usr/bin/:/usr/local/opt/gnupg/bin/'
+ gpgbin_options = which("gpg1", path_extension=path_ext)
for opt in gpgbin_options:
if not os.path.islink(opt):
gpgbin = opt