Browse Source

Исправлен вывод при удалении пакета

tags/3.3.0
Mike Khiretskiy 6 years ago
parent
commit
15160e92a4
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      pym/update/update.py

+ 7
- 4
pym/update/update.py View File

@@ -531,10 +531,13 @@ class Update(object):
"""
self.endTask()
_print = self.color_print
one = _print("{0}", num)
two = _print("{0}", max_num)
part = _(" ({current} of {maximum})").format(current=one,
maximum=two)
if num and max_num:
one = _print("{0}", num)
two = _print("{0}", max_num)
part = _(" ({current} of {maximum})").format(current=one,
maximum=two)
else:
part = ""
_print = _print.foreground(Colors.LIGHT_RED)

self.startTask(


Loading…
Cancel
Save