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