repositories: Prefer gpg2 over gpg
This commit is contained in:
parent
db6a912db5
commit
12f867757b
1 changed files with 4 additions and 3 deletions
|
|
@ -207,9 +207,10 @@ class WeboobRepos(ReplApplication):
|
|||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue