mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Allow gpg home directory to be overridden
This commit is contained in:
parent
3b78147b2c
commit
7a3baa01ed
3 changed files with 10 additions and 6 deletions
|
|
@ -61,10 +61,13 @@ def main():
|
|||
sigpath = os.path.join(output_dir, sigfilename)
|
||||
|
||||
if not os.path.exists(sigpath):
|
||||
p = FDroidPopen(['gpg', '-a',
|
||||
'--output', sigpath,
|
||||
'--detach-sig',
|
||||
os.path.join(output_dir, apkfilename)])
|
||||
gpgargs = ['gpg', '-a',
|
||||
'--output', sigpath,
|
||||
'--detach-sig']
|
||||
if 'gpghome' in config:
|
||||
gpgargs.extend(['--homedir', config['gpghome']])
|
||||
gpgargs.append(os.path.join(output_dir, apkfilename))
|
||||
p = FDroidPopen(gpgargs)
|
||||
if p.returncode != 0:
|
||||
logging.error("Signing failed.")
|
||||
sys.exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue