aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2021-03-22 22:00:08 +0100
committerPapoteur <papoteur@mageia.org>2021-03-22 22:00:08 +0100
commit4bab46f23c42189c7a3b44740320885bfe31bf63 (patch)
treee9e3ff624af7e32587306b74dcbd8a58875a0859 /lib
parent15e4b0a12d2f24f13a4e7e92c9537a705b440ba9 (diff)
downloadisodumper-4bab46f23c42189c7a3b44740320885bfe31bf63.tar
isodumper-4bab46f23c42189c7a3b44740320885bfe31bf63.tar.gz
isodumper-4bab46f23c42189c7a3b44740320885bfe31bf63.tar.bz2
isodumper-4bab46f23c42189c7a3b44740320885bfe31bf63.tar.xz
isodumper-4bab46f23c42189c7a3b44740320885bfe31bf63.zip
Manage case when partition creation failed with reporting (mga#28466)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/isodumper.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index d8387b4..464943f 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -438,7 +438,9 @@ class IsoDumper(object):
if iface.state:
self.logger(_("Added encrypted persistent partition"))
else:
+ self.logger(_("Adding encrypted persistent partition failed"))
self.logger(iface.message)
+ nowarning = False
else:
iface.do_persistence(target, "mgalive-persist", "")
while not iface.done:
@@ -446,7 +448,12 @@ class IsoDumper(object):
self.progress.setValue(progress)
self.dialog.pollEvent()
time.sleep(.5)
- self.logger(_("Added persistent partition"))
+ if iface.state:
+ self.logger(_("Added persistent partition"))
+ else:
+ self.logger(_("Adding persistent partition failed"))
+ self.logger(iface.message)
+ nowarning = False
# Unmount if partitions are automatically mounted and then eject
self.progress.setValue(100)
self.dialog.pollEvent()