From 9d49bc3773b52ce31034e6fcb01be1524497442f Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 28 Mar 2021 15:02:35 +0200 Subject: Add reporting partitions when selecting a device. Use IdLabel and IdType reported by udisks --- lib/isodumper.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/isodumper.py b/lib/isodumper.py index 60345ed..6660e85 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -169,10 +169,8 @@ class UDisks2(object): for block in blocks: if (self.SERVICE + '.Partition' in objects[block['path']]): # we skip non partition blocks # Table should be something like '/org/freedesktop/UDisks2/block_devices/sdb' - print(objects[block['path']][self.SERVICE + '.Block']['Device'], objects[block['path']][self.SERVICE + '.Partition']['Table'],target) if objects[block['path']][self.SERVICE + '.Partition']['Table'].split('/')[-1] == target: partition = objects[block['path']][self.SERVICE + '.Block'] - print(partition['IdLabel']) partitions.append( {'device': bytes(partition['Device']).decode("UTF-8", "replace").strip("\0"), 'label': partition['IdLabel'], 'type': partition['IdType']}) -- cgit v1.2.1