From a03351680763f691f415bd4b2aa069b31e207397 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Wed, 11 Oct 2006 05:52:25 +0000 Subject: [PATCH] * componentdb update is fast. --- pisi/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pisi/index.py b/pisi/index.py index 9c14e76e..1fecc172 100644 --- a/pisi/index.py +++ b/pisi/index.py @@ -104,7 +104,7 @@ class Index(XmlFile): # FIXME: updating db takes too much time. So a notify mechanism is used to inform the status # of the operation. - self.progress = ctx.ui.Progress(len(self.components)+len(self.packages)+len(self.specs)) + self.progress = ctx.ui.Progress(len(self.packages)+len(self.specs)) self.processed = 0 def update_progress(): @@ -116,7 +116,6 @@ class Index(XmlFile): ctx.componentdb.remove_repo(repo, txn=txn) for comp in self.components: ctx.componentdb.update_component(comp, repo, txn) - update_progress() ctx.packagedb.remove_repo(repo, txn=txn) for pkg in self.packages: ctx.packagedb.add_package(pkg, repo, txn=txn)