Entropy/RepoInterface:

- run treeupdates after repositories sync


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2593 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-10-30 09:11:26 +00:00
parent 2707a0282e
commit 8224842bbb

View File

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