From e067c874b8ef16ba476a5c7f981955aacf8bb45e Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 23 Jan 2005 10:20:39 +0000 Subject: [PATCH] get signature even if it's a bad signature (what is a good signature ?) --- Core/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/core.py b/Core/core.py index 654d8e455..4dbf3a19e 100644 --- a/Core/core.py +++ b/Core/core.py @@ -147,7 +147,7 @@ else: proc = self.run(['--verify', '--enable-special-filenames', '-', '-&%s'%fd], create_fhs=['stdin', 'status', 'stderr']) - file.close + file.close() sign = self.addHeaderFooter(sign, 'SIGNATURE') proc.handles['stdin'].write(sign) proc.handles['stdin'].close() @@ -163,6 +163,8 @@ else: keyid = '' if resp.has_key('GOODSIG'): keyid = string.split(resp['GOODSIG'])[0] + if resp.has_key('BADSIG'): + keyid = string.split(resp['BADSIG'])[0] return keyid def get_secret_keys(self):