* progressed operation name
This commit is contained in:
@@ -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
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user