| Date: Thu, 29 Jun 2017 14:14:03 +0200
support old versions of python-gnupg (revert when obsolete !!!)
Diffstat:
M lib/release.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--- |
| t@@ -70,8 +70,11 @@ def sign_release(infile):
stream = open(infile, 'rb')
# Clearsign
- gpg.sign_file(stream, keyid=signingkey, clearsign=True, detach=False,
- output=infile.replace('Release', 'InRelease'))
+ signed_data = gpg.sign_file(stream, keyid=signingkey, clearsign=True,
+ detach=False)
+ inrel = open(infile.replace('Release', 'InRelease'), 'wb')
+ inrel.write(signed_data.data)
+ inrel.close()
# Detached signature (somewhat broken?)
# gpg.sign_file(stream, keyid=signingkey, clearsign=False, detach=True, |