aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-12-18 22:46:20 +0100
committerPapoteur <papoteur@mageia.org>2020-12-18 22:46:20 +0100
commitf4171e7499ef27db9e1bdf92ea9c254a5f4436c2 (patch)
tree6efd8710ba6c8dd2669a3d8b190236989ba1c792 /backend
parenta5ff14b2e46f5270d06f970152d1c9e1fc40cee7 (diff)
downloadisodumper-f4171e7499ef27db9e1bdf92ea9c254a5f4436c2.tar
isodumper-f4171e7499ef27db9e1bdf92ea9c254a5f4436c2.tar.gz
isodumper-f4171e7499ef27db9e1bdf92ea9c254a5f4436c2.tar.bz2
isodumper-f4171e7499ef27db9e1bdf92ea9c254a5f4436c2.tar.xz
isodumper-f4171e7499ef27db9e1bdf92ea9c254a5f4436c2.zip
Display warning instead of succes when signatures or sums doesn't match
Diffstat (limited to 'backend')
-rwxr-xr-xbackend/raw_write.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/raw_write.py b/backend/raw_write.py
index 1c1e216..164089b 100755
--- a/backend/raw_write.py
+++ b/backend/raw_write.py
@@ -198,6 +198,7 @@ class Dumper(object):
sha512func.update(block)
sha512sumcalc=sha512func.hexdigest().upper()
f.close()
+ self.return_state = True
if self.signature_found and not self.signature_checked:
#, keep the pourcent, this is the place for source file name
self.return_message = _('Invalid signature for %s')%self.source_file
@@ -211,17 +212,18 @@ class Dumper(object):
else :
if self.signature_found:
self.return_message +="\n" + _("The signature of the sum is false !").format(self.sum_type)
+ self.return_state = False
else:
#, keep the bracket, this is the place for sum type
self.return_message +="\n" + _("The {} sum check is OK but the signature can't be found").format(self.sum_type)
else:
self.return_message +="\n" + _("/!\\The computed and stored sums don't match")
+ self.return_state = False
#except:
#pass
self._progress = 100
logging.info(self.return_message)
- self.return_state = True
self.finished.set()
def udev_wait(self, operation):