diff --git a/pym/update/utils/cl_update.py b/pym/update/utils/cl_update.py index 3667c59..355cc57 100644 --- a/pym/update/utils/cl_update.py +++ b/pym/update/utils/cl_update.py @@ -254,7 +254,8 @@ class ClUpdateAction(Action): Get('cl_update_metadata_force') == 'force')) }, {'name': 'eix_update', - 'message': __("Updating the eix cache for {cl_repository_name}"), + 'message': __("Updating the eix cache for " + "{cl_update_eix_repositories}"), 'method': 'Update.eixUpdate(cl_repository_name)', 'condition': ( lambda Get: (Get('cl_update_outdate_set') == 'on' and diff --git a/pym/update/utils/cl_update_profile.py b/pym/update/utils/cl_update_profile.py index 137657c..942feb5 100644 --- a/pym/update/utils/cl_update_profile.py +++ b/pym/update/utils/cl_update_profile.py @@ -92,7 +92,8 @@ class ClUpdateProfileAction(Action): Get('cl_update_metadata_force') == 'force')) }, {'name': 'eix_update', - 'message': __("Updating the eix cache for {cl_repository_name}"), + 'message': __("Updating the eix cache for " + "{cl_update_eix_repositories}"), 'method': 'Update.eixUpdate(cl_repository_name)', 'condition': ( lambda Get: (Get('cl_update_outdate_set') == 'on' and diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index e3d8636..efdc582 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -39,6 +39,7 @@ from ..profile import (RepositoryStorageSet, DEFAULT_BRANCH, from calculate.lib.variables import linux as lib_linux from calculate.lib.variables import env from calculate.update.update_info import UpdateInfo +from itertools import chain import time _ = lambda x: x @@ -1561,3 +1562,14 @@ class VariableClUpdateOnedepthSet(Variable): def init(self): self.label = _("Clear the history of repositories") self.help = _("clear the history of repositories") + + +class VariableClUpdateEixRepositories(ReadonlyVariable): + """ + Отображаемый список обновляемых репозиториев eix + """ + def get(self): + return ", ".join( + x for x in chain( + reversed(self.Get('update.cl_update_rep_name')), + self.Get('update.cl_update_other_rep_name')))