[sulfur] remove background caches generation, it's slowing down a bit and doesn't work as user

This commit is contained in:
Fabio Erculiani
2010-09-09 08:00:51 +02:00
parent 29ba1a71e6
commit 8feef25609

View File

@@ -367,9 +367,6 @@ class SulfurApplication(Controller, SulfurApplicationEventsMixin):
self.setup_preferences()
self.setup_events_handling()
# can lead to sqlite3 db corruptions?
self.setup_background_cache_generators()
def setup_resources_locked(self):
self.ui.repoRefreshButton.set_sensitive(not self._RESOURCES_LOCKED)
self.ui.queueTabBox.set_sensitive(not self._RESOURCES_LOCKED)
@@ -398,25 +395,6 @@ class SulfurApplication(Controller, SulfurApplicationEventsMixin):
txt = widget.get_text()
widget.set_markup("<small>%s</small>" % (txt,))
def setup_background_cache_generators(self):
# configuration files update cache generation
def file_updates_cache_gen():
with self._privileges:
self._entropy.FileUpdates.scan(quiet = True)
self._cacher.sync()
return False
def file_updates_fill_view():
try:
self._populate_files_update()
except AttributeError: # it is really necessary
return
gobject.idle_add(file_updates_cache_gen)
return False
gobject.idle_add(file_updates_fill_view)
def setup_events_handling(self):
def queue_changed(event, length):