From a5b4e5fcc7672b65ab9e2e22a28743f05247aefd Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Jan 2023 17:06:00 +0300 Subject: [PATCH] =?UTF-8?q?TG-127=20=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=BA=D0=B0=20.git=20=D0=BF=D1=80=D0=BE=D0=B8=D1=81=D1=85?= =?UTF-8?q?=D0=BE=D0=B4=D0=B8=D1=82=20=D0=B2=D0=BE=20=D0=B2=D1=81=D0=B5?= =?UTF-8?q?=D1=85=20=D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D1=8F=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/{update => }/__init__.py | 0 pym/{update => }/datavars.py | 0 pym/{update => }/emerge_parser.py | 0 pym/{update => }/profile.py | 0 pym/{update => }/update.py | 0 pym/{update => }/update_info.py | 0 pym/{update => }/update_tasks.py | 0 pym/{update => }/utils/__init__.py | 0 pym/{update => }/utils/cl_setup_update.py | 0 pym/{update => }/utils/cl_update.py | 0 pym/{update => }/utils/cl_update_profile.py | 0 pym/{update => }/variables/__init__.py | 0 pym/{update => }/variables/action.py | 0 pym/{update => }/variables/update.py | 9 +++++---- pym/{update => }/wsdl_update.py | 0 15 files changed, 5 insertions(+), 4 deletions(-) rename pym/{update => }/__init__.py (100%) rename pym/{update => }/datavars.py (100%) rename pym/{update => }/emerge_parser.py (100%) rename pym/{update => }/profile.py (100%) rename pym/{update => }/update.py (100%) rename pym/{update => }/update_info.py (100%) rename pym/{update => }/update_tasks.py (100%) rename pym/{update => }/utils/__init__.py (100%) rename pym/{update => }/utils/cl_setup_update.py (100%) rename pym/{update => }/utils/cl_update.py (100%) rename pym/{update => }/utils/cl_update_profile.py (100%) rename pym/{update => }/variables/__init__.py (100%) rename pym/{update => }/variables/action.py (100%) rename pym/{update => }/variables/update.py (99%) rename pym/{update => }/wsdl_update.py (100%) diff --git a/pym/update/__init__.py b/pym/__init__.py similarity index 100% rename from pym/update/__init__.py rename to pym/__init__.py diff --git a/pym/update/datavars.py b/pym/datavars.py similarity index 100% rename from pym/update/datavars.py rename to pym/datavars.py diff --git a/pym/update/emerge_parser.py b/pym/emerge_parser.py similarity index 100% rename from pym/update/emerge_parser.py rename to pym/emerge_parser.py diff --git a/pym/update/profile.py b/pym/profile.py similarity index 100% rename from pym/update/profile.py rename to pym/profile.py diff --git a/pym/update/update.py b/pym/update.py similarity index 100% rename from pym/update/update.py rename to pym/update.py diff --git a/pym/update/update_info.py b/pym/update_info.py similarity index 100% rename from pym/update/update_info.py rename to pym/update_info.py diff --git a/pym/update/update_tasks.py b/pym/update_tasks.py similarity index 100% rename from pym/update/update_tasks.py rename to pym/update_tasks.py diff --git a/pym/update/utils/__init__.py b/pym/utils/__init__.py similarity index 100% rename from pym/update/utils/__init__.py rename to pym/utils/__init__.py diff --git a/pym/update/utils/cl_setup_update.py b/pym/utils/cl_setup_update.py similarity index 100% rename from pym/update/utils/cl_setup_update.py rename to pym/utils/cl_setup_update.py diff --git a/pym/update/utils/cl_update.py b/pym/utils/cl_update.py similarity index 100% rename from pym/update/utils/cl_update.py rename to pym/utils/cl_update.py diff --git a/pym/update/utils/cl_update_profile.py b/pym/utils/cl_update_profile.py similarity index 100% rename from pym/update/utils/cl_update_profile.py rename to pym/utils/cl_update_profile.py diff --git a/pym/update/variables/__init__.py b/pym/variables/__init__.py similarity index 100% rename from pym/update/variables/__init__.py rename to pym/variables/__init__.py diff --git a/pym/update/variables/action.py b/pym/variables/action.py similarity index 100% rename from pym/update/variables/action.py rename to pym/variables/action.py diff --git a/pym/update/variables/update.py b/pym/variables/update.py similarity index 99% rename from pym/update/variables/update.py rename to pym/variables/update.py index 5eb16d1..9a7d638 100644 --- a/pym/update/variables/update.py +++ b/pym/variables/update.py @@ -687,10 +687,11 @@ class VariableClUpdateOtherGitExists(Variable): repos_path = 'cl_update_repos_storage' def get(self): - rep = f"{self.Get(self.repos_path)}/container" - if os.path.exists(os.path.join(rep, '.git')): - return True - return False + repos = self.Get(self.repos_path) + for repo in listDirectory(repos): + if not os.path.exists(os.path.join(repos, os.path.join(repo, '.git'))): + return False + return True diff --git a/pym/update/wsdl_update.py b/pym/wsdl_update.py similarity index 100% rename from pym/update/wsdl_update.py rename to pym/wsdl_update.py