tsupport old versions of python-gnupg (revert when obsolete !!!) - amprolla - devuan's apt repo merger
HTML git clone git://parazyd.org/amprolla.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit f46479d83e4ef4fdf4a050b281755a6908151f14
DIR parent f03f8f3c555d62654a59f985f04461f8695255f4
HTML Author: parazyd <parazyd@dyne.org>
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(-)
---
DIR diff --git a/lib/release.py b/lib/release.py
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,