client updates daemon: workaround for possible race condition, at least

it seems to help
This commit is contained in:
Fabio Erculiani
2009-05-03 18:30:50 +02:00
parent 24639fc71d
commit ef6d2dd5b2

View File

@@ -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()