From 1168020f6db4bf88e21c45c76cdec81721796d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Tue, 14 Mar 2017 17:37:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B7=D0=BE=D0=B2=20depclean=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D1=81=D0=BC=D0=B5=D0=BD=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=D0=B0=20--with-bdeps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/update/update.py | 1 + pym/update/utils/cl_update.py | 1 + pym/update/variables/update.py | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/pym/update/update.py b/pym/update/update.py index e55b395..5281179 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -1228,6 +1228,7 @@ class Update(MethodsInterface): if oldval != newval: self.clVars.Write('cl_update_with_bdeps_set', newval, location="system") + self.clVars.Set('cl_update_force_depclean_set', 'on') return True def message_binhost_changed(self): diff --git a/pym/update/utils/cl_update.py b/pym/update/utils/cl_update.py index e1da361..b975d58 100644 --- a/pym/update/utils/cl_update.py +++ b/pym/update/utils/cl_update.py @@ -45,6 +45,7 @@ class UpdateConditions(object): def func(Get): task = EmergeLog(EmergeLogNamedTask(task_name)) return (bool(PackageList(task.list)[pkg]) + or Get('cl_update_force_depclean_set') == 'on' or Get('cl_update_outdated_kernel_set') == 'on') return func diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index bca3b0c..62b06e4 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -1752,3 +1752,11 @@ class VariableClUpdateWithBdepsOptSet(Variable): def get(self): return self.Get('cl_update_with_bdeps_set') + + +class VariableClUpdateForceDepcleanSet(Variable): + """ + Принудительный вызов depclean + """ + type = "bool" + value = "off"