From 1dd1cd46a40ceb91fbeee61eb187df9ff7dfa5b0 Mon Sep 17 00:00:00 2001 From: idziubenko Date: Fri, 22 Oct 2021 16:50:25 +0300 Subject: [PATCH] preparation for migration project --- pym/update/update.py | 1 + pym/update/utils/cl_update.py | 2 +- pym/update/variables/update.py | 8 +++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pym/update/update.py b/pym/update/update.py index 674f424..3aa787e 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -1575,6 +1575,7 @@ class Update(MethodsInterface): # SUCCESS if not binhost.downgraded or stabilization: host = "-> %s" % host + #TODO add migration binhost check there reason = self.Reason.Success else: reason = self.Reason.Skip diff --git a/pym/update/utils/cl_update.py b/pym/update/utils/cl_update.py index 5aa3000..b9ab518 100644 --- a/pym/update/utils/cl_update.py +++ b/pym/update/utils/cl_update.py @@ -443,7 +443,7 @@ class ClUpdateAction(Action): 'method': 'Update.drop_portage_state_hash()', 'depend': Tasks.failed() }, - # #TEST + # #TODO # {'name': 'update:set_current_level', # 'method': 'Update.update_set_current_level()', # 'condition': lambda Get: Get('cl_update_sync_only_set') == 'off' diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index 35a7a59..c6f305f 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -1561,6 +1561,13 @@ class VariableClUpdateBinhostUnstableList(Variable): value = ["https://testing.calculate-linux.org/"] # value = ["ftp://ftp.calculate-linux.ru/testing"] +class VariableClUpdateBinhostListMigration(Variable): + """ + Список хостов с бинарными обновлениями для стабильной миграции + """ + type = "list" + #TODO placeholder + value = ["https://testing.calculate-linux.org/"] class VariableClUpdateBinhostBase(Variable): """ @@ -1846,7 +1853,6 @@ class VariableClUpdatePortageBinhostPath(Variable): """ value = "/etc/portage/make.conf/binhost" - class VariableClUpdateLevel(Variable): """ Текущий уровень обновления