Add windows hack

This commit is contained in:
nemunaire 2021-09-19 15:45:40 +02:00
parent b84022ef70
commit 19e1111e6c

View File

@ -66,6 +66,9 @@ def check_sign(cmd, bdata, fname, GNUPG_DIRECTORY, keyserver, windows_hack=False
gpg_output = p.stderr.read() gpg_output = p.stderr.read()
gpg_rcode = p.returncode 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 return gpg_status, gpg_output, gpg_rcode