Добавлен параметра with-bdeps

3.6.4.2
parent 4a63656587
commit 08423061d6

@ -1459,7 +1459,10 @@ class Builder(Update):
dv = self.clVars.Get('builder.cl_builder_linux_datavars')
if dv:
deo = dv.Get('cl_emerge_default_opts')
if depclean and dv.GetBool('update.cl_update_with_bdeps_set'):
bdeps_val = self.clVars.Get('cl_builder_with_bdeps_opt_set')
if bdeps_val == "auto":
bdeps = " --with-bdeps-auto=y"
elif bdeps_val == "on":
bdeps = " --with-bdeps=y"
else:
bdeps = " --with-bdeps=n"

@ -1984,3 +1984,30 @@ class VariableClBuilderContainerDataPath(ImagePathHelper, Variable):
prefix = "lxc-"
class VariableClBuilderWithBdepsSet(Variable):
"""
Добавление --with-bdeps при вызове emerge
"""
type = Variable.Types.Tristate
def get(self):
dv = self.Get('cl_builder_linux_datavars')
if dv:
return dv.Get('cl_update_with_bdeps_set')
return Variable.Auto
class VariableClBuilderWithBdepsOptSet(Variable):
"""
Добавление --with-bdeps при вызове emerge (опция)
"""
type = Variable.Types.Tristate
opt = ["--with-bdeps"]
metavalue = "ON/OFF/AUTO"
def init(self):
self.help = _("save packages used during build")
self.label = _("Save packages used during build")
def get(self):
return self.Get('cl_builder_with_bdeps_set')

@ -178,7 +178,8 @@ class Wsdl(WsdlBase):
_("Update the Build"),
normal=('cl_builder_prepared_id',
'cl_builder_binhost_stable_opt_set',
'update.cl_update_binhost_recheck_set',),
'update.cl_update_binhost_recheck_set',
'cl_builder_with_bdeps_opt_set',),
expert=(
'update.cl_update_sync_only_set',
'update.cl_update_other_set',
@ -229,6 +230,7 @@ class Wsdl(WsdlBase):
'cl_builder_prepared_id',
'cl_builder_binhost_stable_opt_set',
'update.cl_update_binhost_recheck_set',
'cl_builder_with_bdeps_opt_set',
'update.cl_update_sync_only_set',
'update.cl_update_other_set',
'update.cl_update_pretend_set',

Loading…
Cancel
Save