Browse Source

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

tags/3.4.0_alpha2
Mike Khiretskiy 5 years ago
parent
commit
301c7759bf
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      pym/update/variables/update.py

+ 9
- 1
pym/update/variables/update.py View File

@@ -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")),


Loading…
Cancel
Save