[entropy.client.interfaces.client] add shutdown() method

This commit is contained in:
Fabio Erculiani
2010-03-30 19:27:01 +02:00
parent 970fbdecc9
commit 8fef0bce04
@@ -721,6 +721,15 @@ class Client(Singleton, TextInterface, LoadersMixin, CacheMixin, CalculatorsMixi
self.close_repositories(mask_clear = False)
def shutdown(self):
"""
This method should be called when the whole process is going to be
killed. It calls destroy() and stops any running thread
"""
self.destroy()
self._cacher.stop()
entropy.tools.kill_threads()
def repository_packages_spm_sync(self, repository_identifier, repo_db,
force = False):
"""