diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/isodumper.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index d44a42f..8a1525c 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -294,23 +294,18 @@ class IsoDumper(object): print(_('Writing {source} to {target}').format(source=source.split('/')[-1],target=target.split('/')[-1])) bus = SystemBus() iface = bus.get("org.mageia.Magiback","Isodumper") - print('DBus ouvert') success, message = iface.do_unmount(target) if success: #Writing step - #Dump mode - print("Partitions démontées") + #Dump mode iface.do_write(source, target) print("Ecriture en cours") while iface.progress < 100 : - print(iface.progress, iface.done) self.progress.setValue(iface.progress) time.sleep(1) - #loop = GLib.MainLoop() - #loop.run() success, message = iface.end() if success: - self.logger(_('Image ')+source.split('/')[-1]+_(' successfully written to ')+target) + self.logger(_('Image {source} successfully written to {target}').format( source=source.split('/')[-1], target=target) self.logger(_('Bytes written: ')+str(b)) self.check_write(target, b) self.success() |