amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

commit f46479d83e4ef4fdf4a050b281755a6908151f14
parent f03f8f3c555d62654a59f985f04461f8695255f4
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 29 Jun 2017 14:14:03 +0200

support old versions of python-gnupg (revert when obsolete !!!)

Diffstat:
Mlib/release.py | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/release.py b/lib/release.py @@ -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,