diff --git a/pym/update/update.py b/pym/update/update.py index b95c9ce..d6d168a 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -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" diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index 68ed0cd..5dea4f7 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -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")