From 301c7759bfb99fb8fce6e9566029915cd0e9f203 Mon Sep 17 00:00:00 2001 From: Mike Khiretskiy Date: Thu, 3 Sep 2015 14:28:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=8D=D0=BA=D1=81=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D1=82=D0=BD=D1=8B=D1=85=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/update/variables/update.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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")),