From 19e1111e6c03629869341b4ca62edffe031020ee Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sun, 19 Sep 2021 15:45:40 +0200 Subject: [PATCH] Add windows hack --- signature.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/signature.py b/signature.py index ec0419b..fc1a80a 100644 --- a/signature.py +++ b/signature.py @@ -66,6 +66,9 @@ def check_sign(cmd, bdata, fname, GNUPG_DIRECTORY, keyserver, windows_hack=False gpg_output = p.stderr.read() gpg_rcode = p.returncode + if gpg_rcode != 0 and not windows_hack: + return check_sign(cmd, bdata.replace(b'\n', b'\r\n'), fname, GNUPG_DIRECTORY, keyserver, True) # Windows hack + return gpg_status, gpg_output, gpg_rcode