Fix gpg binary path validation.

hotfix/pin-psutil-version
drebs 2013-10-24 18:04:30 -02:00
parent 678d36ea62
commit 2c0c826c0f
1 changed files with 2 additions and 0 deletions

View File

@ -271,6 +271,8 @@ def _find_binary(binary=None):
except IndexError as ie:
log.info("Could not determine absolute path of binary: '%s'"
% binary)
elif os.access(binary, os.X_OK):
found = binary
if found is None:
try: found = _which('gpg')[0]
except IndexError as ie: