From d9a4dc08ec235918a3488a104186caadb76c8296 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Mar 2023 18:54:18 +0300 Subject: [PATCH] =?UTF-8?q?TG-210=20Fix:=20=D0=9E=D1=88=D0=B8=D0=B1=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B2=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D1=80=D0=B5=20--url=20cl-builder-profile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/update/variables/update.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index e514aa8..904e3dd 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -1209,10 +1209,10 @@ class VariableClProfileData(ReadonlyTableVariable): def get(self, hr=HumanReadable.No): try: - self.Get('cl_update_profile_url') + self.Get(f'cl_{self.section}_profile_url') except: return [[]] - if self.Get('cl_update_profile_url'): + if self.Get(f'cl_{self.section}_profile_url'): rep = self.Get(self.repository) if not rep: return [[]] @@ -1222,7 +1222,9 @@ class VariableClProfileData(ReadonlyTableVariable): repo_name = profiles[0].repository.repo_name else: full_path = self.Get('cl_profile_system') - storage_path = self.Get('cl_update_repos_storage') + storage_path = self.Get('update.cl_update_repos_storage') + if self.section == 'builder': + full_path = pathJoin('/', self.Get('cl_builder_path'), full_path) if storage_path in full_path: repo_name = full_path.split(storage_path)[1].replace('/', ' ').split()[0] profiles_desc = path.join(storage_path, repo_name, "profiles/profiles.desc")