aboutsummaryrefslogtreecommitdiffstats
path: root/mageiaSync/mageiaSyncExt.py
diff options
context:
space:
mode:
Diffstat (limited to 'mageiaSync/mageiaSyncExt.py')
-rw-r--r--mageiaSync/mageiaSyncExt.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py
index 6bdc0bd..88703f3 100644
--- a/mageiaSync/mageiaSyncExt.py
+++ b/mageiaSync/mageiaSyncExt.py
@@ -31,10 +31,11 @@ class checkThread(QThread):
gpg = gnupg.GPG()
gpg.encoding = 'utf-8'
gpg.recv_keys('pgp.mit.edu', 'EDCA7A90')
- sig_file = self.destination+'/'+self.path+'/'+self.name+'.'+sumType+'.gpg'
+ sum_file = self.destination+'/'+self.path+'/'+self.name+'.'+sumType
+ sig_file = sum_file +'.gpg'
try:
with open(sig_file, 'rb') as g:
- verified = gpg.verify_file(g)
+ verified = gpg.verify_file(g,sum_file)
if verified.valid:
checkvalue=64
print('Valid signature')
@@ -46,7 +47,7 @@ class checkThread(QThread):
print('Signature file %s not found'%sig_file)
checkvalue = 32
try:
- fs=open(self.destination+'/'+self.path+'/'+self.name+'.'+sumType,'r')
+ fs=open(sum_file,'r')
except:
# reference file not found
return checkvalue