Skip to content

Commit

Permalink
Closes jazzband#460: python-gnupg version increase breaks unencrypt_f…
Browse files Browse the repository at this point in the history
…ile function
  • Loading branch information
chambersh1129 committed Sep 27, 2022
1 parent 3d94b0d commit ae4974a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dbbackup/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def get_passphrase(passphrase=passphrase):
inputfile.seek(0)
g = gnupg.GPG()
result = g.decrypt_file(
file=inputfile, passphrase=get_passphrase(), output=temp_filename
fileobj_or_path=inputfile,
passphrase=get_passphrase(),
output=temp_filename,
)
if not result:
raise DecryptionError("Decryption failed; status: %s" % result.status)
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ using GPG. ::
Requirements:

- Install the python package python-gnupg:
``pip install python-gnupg``.
``pip install python-gnupg>=0.5.0``.
- You need a GPG key. (`GPG manual`_)
- Set the setting ``DBBACKUP_GPG_RECIPIENT`` to the name of the GPG key.

Expand Down
2 changes: 1 addition & 1 deletion requirements/tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pep8
psycopg2
pylint
python-dotenv
python-gnupg
python-gnupg>=0.5.0
pytz
testfixtures
tox
Expand Down

0 comments on commit ae4974a

Please sign in to comment.