From 8224842bbbbda1942ff304da5b3d5066bf2c003e Mon Sep 17 00:00:00 2001 From: lxnay Date: Thu, 30 Oct 2008 09:11:26 +0000 Subject: [PATCH] Entropy/RepoInterface: - run treeupdates after repositories sync git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2593 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 36b5ae008..bde13ec41 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -7195,7 +7195,7 @@ class RepoInterface: self.Entropy.validate_repositories() self.Entropy.closeAllRepositoryDatabases() - # clean caches + # clean caches, fetch security if self.dbupdated: self.Entropy.generate_cache( depcache = self.Entropy.xcache, @@ -7205,6 +7205,12 @@ class RepoInterface: ) if self.fetchSecurity: self.do_update_security_advisories() + # do treeupdates + if isinstance(self.Entropy.clientDbconn,EntropyDatabaseInterface): + for repo in self.reponames: + dbc = self.Entropy.openRepositoryDatabase(repo) + dbc.clientUpdatePackagesData(self.Entropy.clientDbconn) + self.Entropy.closeAllRepositoryDatabases() if self.syncErrors: self.Entropy.updateProgress(