Skip to content

Commit

Permalink
Try to fix gpg error
Browse files Browse the repository at this point in the history
  • Loading branch information
desvxx committed Jun 2, 2024
1 parent 0c2df8c commit 6864400
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/tests/cli_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,11 @@ def gpg_symencrypt_file(src, dst, cipher=None, z=None, armor=False, aead=None):
def gpg_decrypt_file(src, dst, keypass):
src = path_for_gpg(src)
dst = path_for_gpg(dst)
ret, out, err = run_proc(GPG, ['--display-charset', CONSOLE_ENCODING, '--homedir', GPGHOME, GPG_LOOPBACK, '--batch',
'--yes', '--passphrase', keypass, '--trust-model',
'always', '-o', dst, '-d', src])
params = ['--display-charset', CONSOLE_ENCODING, '--homedir', GPGHOME, GPG_LOOPBACK, '--batch',
'--yes', '--passphrase', keypass, '--trust-model',
'always', '-o', dst, '-d', src]
if GPG_NO_OLD: params[4:4] = ['--allow-old-cipher-algos']
ret, out, err = run_proc(GPG, params)
if ret != 0:
raise_err('gpg decryption failed', err)

Expand Down

0 comments on commit 6864400

Please sign in to comment.