Skip to content
Browse files

repositories: Prefer gpg2 over gpg

  • Loading branch information...
1 parent db6a912 commit 12f867757bba0dd016293f0f9c02a58b0d6cdacb @laurentb committed Apr 10, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 weboob/applications/weboobrepos/weboobrepos.py
View
7 weboob/applications/weboobrepos/weboobrepos.py
@@ -207,9 +207,10 @@ def _find_gpg():
return os.getenv('GPG_EXECUTABLE')
paths = os.getenv('PATH', os.defpath).split(os.pathsep)
for path in paths:
- fpath = os.path.join(path, 'gpg')
- if os.path.exists(fpath) and os.access(fpath, os.X_OK):
- return fpath
+ for ex in ('gpg2', 'gpg'):
+ fpath = os.path.join(path, ex)
+ if os.path.exists(fpath) and os.access(fpath, os.X_OK):
+ return fpath
def _archive_excludes(self, filename):
# Skip *.pyc files in tarballs.

0 comments on commit 12f8677

Please sign in to comment.
Something went wrong with that request. Please try again.