aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2019-07-10 19:47:02 +0200
committerPapoteur <papoteur@mageia.org>2019-07-10 19:48:09 +0200
commit3d9b39c47a3c90401f2c3fc7aecb68fbb417fa65 (patch)
treea6168af2e132607274df894496232802292469b3 /backend
parent9b77bb7b104f81afb2819d33d8646a728bb6583d (diff)
downloadisodumper-3d9b39c47a3c90401f2c3fc7aecb68fbb417fa65.tar
isodumper-3d9b39c47a3c90401f2c3fc7aecb68fbb417fa65.tar.gz
isodumper-3d9b39c47a3c90401f2c3fc7aecb68fbb417fa65.tar.bz2
isodumper-3d9b39c47a3c90401f2c3fc7aecb68fbb417fa65.tar.xz
isodumper-3d9b39c47a3c90401f2c3fc7aecb68fbb417fa65.zip
Adapt signature checking to new method of signing of Mageia 7.
Diffstat (limited to 'backend')
-rwxr-xr-xbackend/raw_write.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/raw_write.py b/backend/raw_write.py
index 40a7de4..dbf8e19 100755
--- a/backend/raw_write.py
+++ b/backend/raw_write.py
@@ -160,7 +160,7 @@ class Dumper(object):
self.sum_check_searched = True
with open(sig_file, 'rb') as g:
self.signature_found = True
- verified = gpg.verify_file(g)
+ verified = gpg.verify_file(g, source + ".sha512")
if verified.valid:
self.signature_checked = True
logging.debug("signature checked")
@@ -205,16 +205,16 @@ class Dumper(object):
f.close()
if self.signature_found and not self.signature_checked:
self.return_message = _('Invalid signature for %s.sha512')%source
- if (self.sum_check == "") :
+ if (self.sum_check == "") : # Can't get stored sum
self.return_message += _('SHA512 sum: {}').format(sha512sumcalc)
# compare the sums
elif (sha512sumcalc == self.sum_check) :
if self.signature_checked:
- self.return_message += _("The sha512 sum check is OK and the sum is signed")
+ self.return_message +="\n" + _("The sha512 sum check is OK and the sum is signed")
else :
- self.return_message += _("The sha512 sum check is OK but the signature can't be found")
+ self.return_message +="\n" + _("The sha512 sum check is OK but the signature can't be found")
else:
- self.return_message += _("/!\\The computed and stored sums don't match")
+ self.return_message +="\n" + _("/!\\The computed and stored sums don't match")
#except:
#pass
self._progress = 100