aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2018-03-04 18:11:03 +0100
committerPapoteur <papoteur@mageia.org>2018-03-16 11:17:42 +0100
commit6f3e123eab4deefbfa6ade7b268b19ab1e4309b4 (patch)
treea12007f92de9ee2e1501f2658a1088e87cbe70d5 /lib
parent2c73bbce277bc1f3e2b18edb5f20e282bded4770 (diff)
downloadisodumper-6f3e123eab4deefbfa6ade7b268b19ab1e4309b4.tar
isodumper-6f3e123eab4deefbfa6ade7b268b19ab1e4309b4.tar.gz
isodumper-6f3e123eab4deefbfa6ade7b268b19ab1e4309b4.tar.bz2
isodumper-6f3e123eab4deefbfa6ade7b268b19ab1e4309b4.tar.xz
isodumper-6f3e123eab4deefbfa6ade7b268b19ab1e4309b4.zip
Cleaning
Diffstat (limited to 'lib')
-rwxr-xr-xlib/isodumper.py9
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()