Skip to content

Commit

Permalink
repositories: Prefer gpg2 over gpg
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentb committed Apr 10, 2012
1 parent db6a912 commit 12f8677
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions weboob/applications/weboobrepos/weboobrepos.py
Expand Up @@ -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.
Expand Down

0 comments on commit 12f8677

Please sign in to comment.