aboutsummaryrefslogtreecommitdiffstats
path: root/lib/isodumper.py
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 /lib/isodumper.py
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 'lib/isodumper.py')
-rwxr-xr-xlib/isodumper.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 540b0b1..9e68e3f 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -417,7 +417,7 @@ class IsoDumper(object):
self.progress.setValue(progress)
self.dialog.pollEvent()
time.sleep(.5)
- success, message = iface.end()
+ nowarning, message = iface.end()
self.progress.setEnabled()
self.logger(message)
# Add persistent partition if asked
@@ -455,7 +455,10 @@ class IsoDumper(object):
self.udev_wait(_("unmounting"))
if success:
self.u.eject(target)
- self.success()
+ if nowarning :
+ self.success()
+ else:
+ self.warning()
else:
self.emergency(message)
self.restore()
@@ -477,6 +480,16 @@ class IsoDumper(object):
if self.ask_OK(info):
return
+ def warning(self):
+ self.operation = False
+ self.final_unsensitive()
+ info = Info(_("Warning"), True, _("The operation completed, but with anomalies.\n\
+ Check carefully the messages in log view.\n\
+ You are free to unplug it now, a logfile \n\
+(/home/-user- or /root)/.isodumper/isodumper.log will be saved when\n\
+ you close the application."))
+ if self.ask_OK(info):
+ return
def confirm_close(self, *args):
if not self.operation: # no writing , backup nor format running
self.close()