[Pkg-privacy-commits] [tails-installer] 25/43: WIP: block until UDisks client has settled.
Ulrike Uhlig
u-guest at moszumanska.debian.org
Tue Nov 15 23:30:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch debian/sid
in repository tails-installer.
commit f08bc5c35809ccb9a1345862cd94ae99d6c24843
Author: intrigeri <intrigeri at boum.org>
Date: Wed Jul 20 09:03:06 2016 +0000
WIP: block until UDisks client has settled.
According to the UDisks Reference Manual, this is "useful […] when using
synchronous method calls since e.g. D-Bus signals received while waiting
for the reply are queued up and dispatched after the synchronous call
ends".
---
tails_installer/creator.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tails_installer/creator.py b/tails_installer/creator.py
index 25401f9..59de5b8 100755
--- a/tails_installer/creator.py
+++ b/tails_installer/creator.py
@@ -862,6 +862,7 @@ class LinuxTailsInstallerCreator(TailsInstallerCreator):
else:
raise
+ self._udisksclient.settle()
self.flush_buffers(silent=True)
time.sleep(5)
@@ -888,6 +889,7 @@ class LinuxTailsInstallerCreator(TailsInstallerCreator):
# (https://labs.riseup.net/code/issues/10720#note-28)
# This code duplicates some code we have above, so if this works,
# we'll want to refactor.
+ self._udisksclient.settle()
self.flush_buffers(silent=True)
time.sleep(5)
block.call_rescan_sync(GLib.Variant('a{sv}', None))
--
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