summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Briza <mbriza@redhat.com>2016-04-20 18:33:04 +0200
committerMartin Briza <mbriza@redhat.com>2016-04-20 18:33:04 +0200
commitc4f0162b0923ce6b36032471d788e0a8f2ed29a1 (patch)
treea167a9cbfbcd94b922bcc0f682f64263f4224c06
parent71ab5355f4d70fe90435756773efceb6e74e48dd (diff)
Delete drives only if the blockdevice is removed from them3.93.0
-rwxr-xr-xliveusb/creator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/liveusb/creator.py b/liveusb/creator.py
index f68361f..dfd35e4 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -336,7 +336,7 @@ class LinuxLiveUSBCreator(LiveUSBCreator):
self.callback()
def handleRemoved(path, interfaces):
- if self.drives.has_key(path):
+ if 'org.freedesktop.UDisks2.Block' in interfaces and self.drives.has_key(path):
del self.drives[path]
if self.callback: