diff --git a/pym/update/update.py b/pym/update/update.py index d19aa59..dffe451 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -147,6 +147,8 @@ class Update(MethodsInterface): self.clVars.Get('update.cl_update_rep_path'))) self.update_map = {} self.refresh_binhost = False + self.pkgnum = None + self.pkgnummax = None def get_prog_path(self, program_name): return getProgPath(program_name) @@ -560,6 +562,10 @@ class Update(MethodsInterface): """ self.endTask() _print = self.color_print + if self.pkgnum is not None: + num = self.pkgnum + if self.pkgnummax is not None: + max_num = self.pkgnummax one = _print("{0}", num) two = _print("{0}", max_num) part = _("({current} of {maximum})").format(current=one, maximum=two)