Исправление экспертных параметров

develop 3.4.0_alpha2
Mike Khiretskiy 9 years ago
parent a801ce6dbf
commit 301c7759bf

@ -53,9 +53,14 @@ class VariableAcUpdateSync(ReadonlyVariable):
return self.Get('cl_update_world') return self.Get('cl_update_world')
return "" return ""
class VariableClUpdateWorldDefault(Variable):
"""
Ad-hoc
"""
value = "update"
class VariableClUpdateWorld(Variable): class VariableClUpdateWorld(Variable):
type = "choice" type = "choice"
value = "update"
opt = ["--world"] opt = ["--world"]
syntax = "--{choice}-world" syntax = "--{choice}-world"
metavalue = "MODE" metavalue = "MODE"
@ -66,6 +71,9 @@ class VariableClUpdateWorld(Variable):
",\n'update' - " + _("update the system packages list")) ",\n'update' - " + _("update the system packages list"))
self.label = _("System packages list") self.label = _("System packages list")
def get(self):
return self.Get('cl_update_world_default')
def choice(self): def choice(self):
return [("rebuild", _("Rebuild")), return [("rebuild", _("Rebuild")),
("merge", _("Merge")), ("merge", _("Merge")),

Loading…
Cancel
Save