aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpapoteur-mga <yves.brungard_git@gadz.org>2013-11-23 19:20:56 +0100
committerpapoteur-mga <yves.brungard_git@gadz.org>2013-11-23 19:20:56 +0100
commit5b6b20aca48ea9b9be4b534f127a4989d650fdae (patch)
tree30aca0999ead8540fb0518a6480245596d31ad47
parent9d4b1d17a8e5d2fee7a927fb4b43b8674b0b84c8 (diff)
downloadisodumper-5b6b20aca48ea9b9be4b534f127a4989d650fdae.tar
isodumper-5b6b20aca48ea9b9be4b534f127a4989d650fdae.tar.gz
isodumper-5b6b20aca48ea9b9be4b534f127a4989d650fdae.tar.bz2
isodumper-5b6b20aca48ea9b9be4b534f127a4989d650fdae.tar.xz
isodumper-5b6b20aca48ea9b9be4b534f127a4989d650fdae.zip
Correction to the extraction of the name of the device.
-rwxr-xr-xlib/isodumper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index aa92964..81843f8 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -110,10 +110,11 @@ class IsoDumper:
combo.set_sensitive(False)
self.chooser.set_sensitive(False)
source = self.chooser.get_filename()
- target = self.dev.split('(')[1].rstrip(')')
+ target = self.dev.split('(')[1].split(')')[0]
dialog = self.wTree.get_widget("confirm_dialog")
self.logger(_('Image: ')+source)
self.logger(_('Target Device: ')+self.dev)
+ self.logger(_('Target Device: ')+target)
b = os.path.getsize(source)
if b >= (eval(self.deviceSize)) :
self.logger(_('The device is too small to contain the ISO file.'))