aboutsummaryrefslogtreecommitdiffstats
path: root/lib/isodumper.py
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-10-09 18:16:04 +0200
committerPapoteur <papoteur@mageialinux-online.org>2015-10-09 18:16:04 +0200
commitd52548539cfb3a1408c249a40db30c021fbb71ef (patch)
treece02eac6b9ff4d1f900aa4ad9f9038b5d687df1d /lib/isodumper.py
parent417e27214b07ca592f95ce5ca6a5b162d6f403d7 (diff)
downloadisodumper-d52548539cfb3a1408c249a40db30c021fbb71ef.tar
isodumper-d52548539cfb3a1408c249a40db30c021fbb71ef.tar.gz
isodumper-d52548539cfb3a1408c249a40db30c021fbb71ef.tar.bz2
isodumper-d52548539cfb3a1408c249a40db30c021fbb71ef.tar.xz
isodumper-d52548539cfb3a1408c249a40db30c021fbb71ef.zip
Better managing error and messages while writing
Diffstat (limited to 'lib/isodumper.py')
-rw-r--r--lib/isodumper.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index cf45c83..a18995c 100644
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -204,12 +204,10 @@ class IsoDumper(object):
if self.dev.startswith(name):
self.deviceSize=size
self.device_name=name.rstrip().replace(' ', '')
+ self.logger(_('Target Device: ')+ self.dev)
break
self.formatbt.setEnabled()
self.ima.setEnabled()
-# if self.chooser.get_current_folder_uri() == None :
-# self.chooser.set_current_folder_uri('file:///home/'+self.user)
- self.logger(_('Target Device: ')+ self.dev)
def backup_sel(self,widget):
if self.backup_bname.get_current_folder_uri() == None :
@@ -304,6 +302,7 @@ class IsoDumper(object):
def do_write(self):
+ self.returncode = 0
self.writebt.setDisabled()
self.devicelist.setDisabled()
self.formatbt.setDisabled()
@@ -339,8 +338,8 @@ class IsoDumper(object):
self.returncode=0
b=os.path.getsize(source)
self.raw_write(source, target, b)
- self.check_write(target, b)
if self.returncode == 0:
+ self.check_write(target, b)
self.success()
else:
self.restore()