From ef6d2dd5b278085d6aafb6d8e6c174f3d947d2db Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 3 May 2009 18:30:50 +0200 Subject: [PATCH] client updates daemon: workaround for possible race condition, at least it seems to help --- services/client-updates-daemon | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/services/client-updates-daemon b/services/client-updates-daemon index 69e7666a4..29a5d5678 100755 --- a/services/client-updates-daemon +++ b/services/client-updates-daemon @@ -116,7 +116,8 @@ class Entropy(Client): def init_singleton(self): Client.init_singleton(self, load_ugc = False, - url_fetcher = DaemonUrlFetcher, repo_validation = False) + url_fetcher = DaemonUrlFetcher, repo_validation = False, + xcache = False) self.updateProgress( "Loading Entropy Updates daemon: check every %ss, logfile: %s" % ( CHECK_DELAY_SECS, DAEMON_LOGFILE,) @@ -151,6 +152,10 @@ class UpdatesDaemon(dbus.service.Object): dbus.service.Object.__init__ (self, system_bus, object_path) write_output("__init__: dbus service loaded") + # this seems to avoid race conditions + # with dbus service not being available + time.sleep(2) + def start(self): self.stop()