commit:     34ce6c4b4c8420b77870ef157c60984dc5ae46ce
Author:     Magnus Granberg <zorry <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  4 11:32:24 2024 +0000
Commit:     Magnus Granberg <zorry <AT> gentoo <DOT> org>
CommitDate: Sun Feb  4 11:32:24 2024 +0000
URL:        
https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=34ce6c4b

Use project_data for profile link

Signed-off-by: Magnus Granberg <zorry <AT> gentoo.org>

 buildbot_gentoo_ci/steps/portage.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/buildbot_gentoo_ci/steps/portage.py 
b/buildbot_gentoo_ci/steps/portage.py
index 775e076..f90da5a 100644
--- a/buildbot_gentoo_ci/steps/portage.py
+++ b/buildbot_gentoo_ci/steps/portage.py
@@ -92,12 +92,12 @@ class SetMakeProfile(BuildStep):
         portage_repos_path = self.getProperty('portage_repos_path')
         project_data = self.getProperty('project_data')
         profile_repository_data = yield 
self.gentooci.db.repositorys.getRepositoryByUuid(project_data['profile_repository_uuid'])
-        makeprofiles_paths = []
+        #makeprofiles_paths = []
         #NOTE: pkgcheck don't support make.profile as a dir
         # we only support one line in db
-        makeprofiles_data = yield 
self.gentooci.db.projects.getAllProjectPortageByUuidAndDirectory(project_data['uuid'],
 'make.profile')
-        for makeprofile in makeprofiles_data:
-            makeprofile_path = yield os.path.join(portage_repos_path, 
profile_repository_data['name'], 'profiles', makeprofile['value'], '')
+        #makeprofiles_data = yield 
self.gentooci.db.projects.getAllProjectPortageByUuidAndDirectory(project_data['uuid'],
 'make.profile')
+        #for makeprofile in makeprofiles_data:
+        makeprofile_path = yield os.path.join(portage_repos_path, 
profile_repository_data['name'], 'profiles', project_data['profile'], '')
         #    makeprofiles_paths.append('../../..' + makeprofile_path)
         #separator = '\n'
         #makeprofile_path_string = separator.join(makeprofiles_paths)

Reply via email to