diff options
Diffstat (limited to 'mageiaSync/mageiaSyncExt.py')
-rw-r--r-- | mageiaSync/mageiaSyncExt.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py index e934143..2f29fa4 100644 --- a/mageiaSync/mageiaSyncExt.py +++ b/mageiaSync/mageiaSyncExt.py @@ -32,14 +32,19 @@ class checkThread(QThread): sig_file = sum_file +'.gpg' try: with open(sig_file, 'rb') as g: - verified = gpg.verify_file(g,sum_file) + verified = gpg.verify_file(g,close_file=False) if verified.valid: checkvalue=64 print('Valid signature') else: - print('Invalid signature for %s'%self.name+'.'+sumType) - print(verified.key_status) - return 0 + verified = gpg.verify_file(g, sum_file) + if verified.valid: + checkvalue=64 + print('Valid detached signature') + else: + print('Invalid signature for %s'%self.name+'.'+sumType) + print(verified.key_status) + return 0 except: print('Signature file %s not found'%sig_file) checkvalue = 32 |