* progressed operation name

This commit is contained in:
Faik Uygur
2006-10-11 22:34:34 +00:00
parent a148d4b9dc
commit f14109d8e9
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -422,7 +422,9 @@ class Remove(AtomicOperation):
for fileinfo in self.files.list: for fileinfo in self.files.list:
self.remove_file(fileinfo) self.remove_file(fileinfo)
removed += 1 removed += 1
ctx.ui.notify(pisi.ui.progressed, percent = progress.update(removed), ctx.ui.notify(pisi.ui.progressed,
operation = "removing",
percent = progress.update(removed),
info = _("Removing package %s") % self.package_name) info = _("Removing package %s") % self.package_name)
txn = ctx.dbenv.txn_begin() txn = ctx.dbenv.txn_begin()
+3 -1
View File
@@ -108,7 +108,9 @@ class Index(XmlFile):
def update_progress(): def update_progress():
self.processed += 1 self.processed += 1
ctx.ui.notify(pisi.ui.progressed, percent = self.progress.update(self.processed), ctx.ui.notify(pisi.ui.progressed,
operation = "updatingrepo",
percent = self.progress.update(self.processed),
info = _("Updating package database of %s") % repo) info = _("Updating package database of %s") % repo)
ctx.componentdb.remove_repo(repo, txn=txn) ctx.componentdb.remove_repo(repo, txn=txn)