aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/isodumper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 5b1801f..4db8e4e 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -81,12 +81,12 @@ class UDisks2(object):
list=[]
for block in blocks:
- if not block['path'][-1].isdigit():
+ if not (self.SERVICE + '.Partition' in objects[block['path']]): # we skip partition blocks
for dev in devs:
- if dev['path'] == objects[block['path']][self.BLOCK]['Drive']:
+ if dev['path'] == objects[block['path']][self.BLOCK]['Drive']: # we look for device which is referenced in Drive attribute of the current block
dev_obj =objects[dev['path']][self.DRIVE]
if (dev_obj['ConnectionBus'] == 'usb' or dev_obj['ConnectionBus'] == 'sdio') and \
- (dev_obj['Removable'] == 1 or dev_obj['MediaRemovable'] == 1 ):
+ (dev_obj['Removable'] == 1 or dev_obj['MediaRemovable'] == 1 ): # we keep only blocks where device ConnectionBus is sdio or usb
item=[]
vend = dev_obj['Vendor']
if vend == "":