[Pkg-privacy-commits] [tails-installer] 21/21: Delete drives only if the blockdevice is removed from them
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:27:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.93.0
in repository tails-installer.
commit c4f0162b0923ce6b36032471d788e0a8f2ed29a1
Author: Martin Briza <mbriza at redhat.com>
Date: Wed Apr 20 18:33:04 2016 +0200
Delete drives only if the blockdevice is removed from them
---
liveusb/creator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list