aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-08-31 21:11:30 +0200
committerPapoteur <papoteur@mageia.org>2020-08-31 21:11:30 +0200
commit9de4644482c8c5b247cff33612a517a5fb701f2d (patch)
tree698fe8924b2399f78bb8af2021d3c89a9f4b16d0 /lib
parent86d5d47b70190114ed247833ea404cbc6d9198fc (diff)
downloadisodumper-9de4644482c8c5b247cff33612a517a5fb701f2d.tar
isodumper-9de4644482c8c5b247cff33612a517a5fb701f2d.tar.gz
isodumper-9de4644482c8c5b247cff33612a517a5fb701f2d.tar.bz2
isodumper-9de4644482c8c5b247cff33612a517a5fb701f2d.tar.xz
isodumper-9de4644482c8c5b247cff33612a517a5fb701f2d.zip
Avoid ambiguity when retrieving data of the selected device.
It was the case when name was void, i.e. Vendor and model of the device was void. (mga#27209)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/isodumper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 1f03cc4..4f77422 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -155,7 +155,7 @@ class IsoDumper(object):
if selitem != None:
self.dev = selitem.label()
for name, path, size in self.list:
- if self.dev.startswith(name):
+ if self.dev.startswith(name+' ('+path.lstrip()):
self.deviceSize=size
self.device_name=name.rstrip().replace(' ', '')
self.logger(_('Target Device: ')+ self.dev)