Переименован параметр командной строки

master3.3
Mike khiretskiy 10 years ago
parent bc208e2e09
commit a90c02ecfc

@ -285,8 +285,8 @@ class Update:
self.endTask() self.endTask()
_print = self.color_print _print = self.color_print
if max_num > 1: if max_num > 1:
one = _print.foreground(Colors.YELLOW).bold("{0}", num) one = _print.bold("{0}", num)
two = _print.foreground(Colors.YELLOW).bold("{0}", max_num) two = _print.bold("{0}", max_num)
part = _(" ({current} of {maximum})").format(current=one, part = _(" ({current} of {maximum})").format(current=one,
maximum=two) maximum=two)
else: else:
@ -320,8 +320,8 @@ class Update:
self.endTask() self.endTask()
_print = self.color_print _print = self.color_print
if max_num > 1: if max_num > 1:
one = _print.foreground(Colors.YELLOW).bold("{0}", num) one = _print.bold("{0}", num)
two = _print.foreground(Colors.YELLOW).bold("{0}", max_num) two = _print.bold("{0}", max_num)
part = _(" ({current} of {maximum})").format(current=one, part = _(" ({current} of {maximum})").format(current=one,
maximum=two) maximum=two)
else: else:

@ -401,7 +401,7 @@ class VariableClUpdateSyncOnlySet(Variable):
""" """
type = "bool" type = "bool"
value = "off" value = "off"
opt = ["-s","--sync-only"] opt = ["-s", "--sync"]
def init(self): def init(self):
self.label = _("Only synchronize repositories") self.label = _("Only synchronize repositories")

Loading…
Cancel
Save