* notify notify

This commit is contained in:
Faik Uygur
2006-10-11 22:15:29 +00:00
parent 7c87b5f719
commit a148d4b9dc
2 changed files with 1 additions and 2 deletions
+1
View File
@@ -362,6 +362,7 @@ def list_repos():
def update_repo(repo, force=False): def update_repo(repo, force=False):
ctx.ui.info(_('* Updating repository: %s') % repo) ctx.ui.info(_('* Updating repository: %s') % repo)
ctx.ui.notify(pisi.ui.updatingrepo, name = repo)
index = Index() index = Index()
if ctx.repodb.has_repo(repo): if ctx.repodb.has_repo(repo):
repouri = ctx.repodb.get_repo(repo).indexuri.get_uri() repouri = ctx.repodb.get_repo(repo).indexuri.get_uri()
-2
View File
@@ -71,7 +71,6 @@ class Index(XmlFile):
urlfile.write(uri) # uri urlfile.write(uri) # uri
urlfile.close() urlfile.close()
ctx.ui.notify(pisi.ui.downloading, name=repo)
self.read_uri(uri, tmpdir, force) self.read_uri(uri, tmpdir, force)
if not repo: if not repo:
@@ -112,7 +111,6 @@ class Index(XmlFile):
ctx.ui.notify(pisi.ui.progressed, percent = self.progress.update(self.processed), ctx.ui.notify(pisi.ui.progressed, percent = self.progress.update(self.processed),
info = _("Updating package database of %s") % repo) info = _("Updating package database of %s") % repo)
ctx.ui.notify(pisi.ui.updatingrepo, name = repo)
ctx.componentdb.remove_repo(repo, txn=txn) ctx.componentdb.remove_repo(repo, txn=txn)
for comp in self.components: for comp in self.components:
ctx.componentdb.update_component(comp, repo, txn) ctx.componentdb.update_component(comp, repo, txn)