Browse Source

Добавлена возможность изменения номеров установленных пакетов

tags/3.5.1_beta2
parent
commit
9358b1a4a5
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      pym/update/update.py

+ 6
- 0
pym/update/update.py View File

@@ -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)


Loading…
Cancel
Save