Browse Source

Изменено назначение with-bdeps

tags/3.6.4.1
parent
commit
3ece80cac4
2 changed files with 8 additions and 4 deletions
  1. +4
    -1
      pym/update/update.py
  2. +4
    -3
      pym/update/variables/update.py

+ 4
- 1
pym/update/update.py View File

@@ -810,7 +810,10 @@ class Update(MethodsInterface):
SystemIni(self.clVars).setVar('system', {'last_check': str(int(time.time()))})

def get_default_emerge_opts(self, depclean=False):
if depclean and self.clVars.GetBool('cl_update_with_bdeps_set'):
bdeps_val = self.clVars.Get('cl_update_with_bdeps_set')
if bdeps_val == "auto":
bdeps = " --with-bdeps-auto=y"
elif bdeps_val == "on":
bdeps = " --with-bdeps=y"
else:
bdeps = " --with-bdeps=n"


+ 4
- 3
pym/update/variables/update.py View File

@@ -1719,16 +1719,17 @@ class VariableClUpdateWithBdepsSet(Variable):
"""
Добавление --with-bdeps при вызове emerge
"""
type = Variable.Types.Boolean
value = Variable.On
type = Variable.Types.Tristate
value = Variable.Auto


class VariableClUpdateWithBdepsOptSet(Variable):
"""
Добавление --with-bdeps при вызове emerge (опция)
"""
type = Variable.Types.Boolean
type = Variable.Types.Tristate
opt = ["--with-bdeps"]
metavalue = "ON/OFF/AUTO"

def init(self):
self.help = _("save packages used during build")


Loading…
Cancel
Save