From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1318794-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1EE41158041 for <garchives@archives.gentoo.org>; Tue, 7 Sep 2021 00:46:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3DD3EE08A2; Tue, 7 Sep 2021 00:46:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1CE4CE08A2 for <gentoo-commits@lists.gentoo.org>; Tue, 7 Sep 2021 00:46:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0774C335CB7 for <gentoo-commits@lists.gentoo.org>; Tue, 7 Sep 2021 00:46:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 188E835 for <gentoo-commits@lists.gentoo.org>; Tue, 7 Sep 2021 00:46:34 +0000 (UTC) From: "Magnus Granberg" <zorry@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" <zorry@gentoo.org> Message-ID: <1630975613.1f2f01cb4febebe5d47b4ef6c9591b73cbdfc5a5.zorry@gentoo> Subject: [gentoo-commits] proj/tinderbox-cluster:master commit in: buildbot_gentoo_ci/steps/ X-VCS-Repository: proj/tinderbox-cluster X-VCS-Files: buildbot_gentoo_ci/steps/logs.py buildbot_gentoo_ci/steps/portage.py buildbot_gentoo_ci/steps/update_db.py X-VCS-Directories: buildbot_gentoo_ci/steps/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: 1f2f01cb4febebe5d47b4ef6c9591b73cbdfc5a5 X-VCS-Branch: master Date: Tue, 7 Sep 2021 00:46:34 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: adb2e7bf-e980-4238-a915-4acc90303f15 X-Archives-Hash: 2279ec7c1dc86659e185b0f117d8e311 commit: 1f2f01cb4febebe5d47b4ef6c9591b73cbdfc5a5 Author: Magnus Granberg <zorry <AT> gentoo <DOT> org> AuthorDate: Tue Sep 7 00:46:53 2021 +0000 Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org> CommitDate: Tue Sep 7 00:46:53 2021 +0000 URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=1f2f01cb Support more options in project dict in config file Signed-off-by: Magnus Granberg <zorry <AT> gentoo.org> buildbot_gentoo_ci/steps/logs.py | 2 +- buildbot_gentoo_ci/steps/portage.py | 2 +- buildbot_gentoo_ci/steps/update_db.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/buildbot_gentoo_ci/steps/logs.py b/buildbot_gentoo_ci/steps/logs.py index d69c447..d86e208 100644 --- a/buildbot_gentoo_ci/steps/logs.py +++ b/buildbot_gentoo_ci/steps/logs.py @@ -37,7 +37,7 @@ class SetupPropertys(BuildStep): def run(self): self.gentooci = self.master.namedServices['services'].namedServices['gentooci'] project_data = yield self.gentooci.db.projects.getProjectByUuid(self.getProperty('project_build_data')['project_uuid']) - default_project_data = yield self.gentooci.db.projects.getProjectByName(self.gentooci.config.project['project']) + default_project_data = yield self.gentooci.db.projects.getProjectByName(self.gentooci.config.project['project']['update_db']) version_data = yield self.gentooci.db.versions.getVersionByUuid(self.getProperty('project_build_data')['version_uuid']) self.setProperty("project_data", project_data, 'project_data') self.setProperty("default_project_data", default_project_data, 'default_project_data') diff --git a/buildbot_gentoo_ci/steps/portage.py b/buildbot_gentoo_ci/steps/portage.py index 37f7342..0a131d7 100644 --- a/buildbot_gentoo_ci/steps/portage.py +++ b/buildbot_gentoo_ci/steps/portage.py @@ -326,7 +326,7 @@ class SetEnvDefault(BuildStep): def run(self): self.gentooci = self.master.namedServices['services'].namedServices['gentooci'] project_data = self.getProperty('project_data') - default_project_data = yield self.gentooci.db.projects.getProjectByName(self.gentooci.config.project['project']) + default_project_data = yield self.gentooci.db.projects.getProjectByName(self.gentooci.config.project['project']['update_db']) aftersteps_list = [] separator1 = '\n' separator2 = ' ' diff --git a/buildbot_gentoo_ci/steps/update_db.py b/buildbot_gentoo_ci/steps/update_db.py index 8e7f8ee..0ed4be1 100644 --- a/buildbot_gentoo_ci/steps/update_db.py +++ b/buildbot_gentoo_ci/steps/update_db.py @@ -19,7 +19,7 @@ class GetDataGentooCiProject(BuildStep): @defer.inlineCallbacks def run(self): self.gentooci = self.master.namedServices['services'].namedServices['gentooci'] - self.project_data = yield self.gentooci.db.projects.getProjectByName(self.gentooci.config.project['project']) + self.project_data = yield self.gentooci.db.projects.getProjectByName(self.gentooci.config.project['project']['update_db']) if self.project_data is None: log.err('No data for project in the database') return FAILURE