diff options
author | papoteur-mga <yves.brungard_git@gadz.org> | 2013-11-23 19:20:56 +0100 |
---|---|---|
committer | papoteur-mga <yves.brungard_git@gadz.org> | 2013-11-23 19:20:56 +0100 |
commit | 5b6b20aca48ea9b9be4b534f127a4989d650fdae (patch) | |
tree | 30aca0999ead8540fb0518a6480245596d31ad47 /lib | |
parent | 9d4b1d17a8e5d2fee7a927fb4b43b8674b0b84c8 (diff) | |
download | isodumper-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.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/isodumper.py | 3 |
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.')) |