From nobody Mon Feb 9 05:41:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58269+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58269+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1588111038; cv=none; d=zohomail.com; s=zohoarc; b=SgaDrGn3mRFl4drmgSo86oBhT/63QbOOB+wj8RZLdcQUqxHa/LTZ580/ZJOLZoMGdaePrCoFfrftAuuQU3sZCOC/ZtU5NCo+zfmK/OIj7Z86sMuqn/UKwZyvsTcykEYEGcnRPZzCbxAfoY7eKm/6klgSRkDVrizumwvCkIlQq9k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588111038; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=T/tgQ+Ii46X0JZMOL+zdFfLg+ti03XkMlRywrw8IB/s=; b=OatJKkLGo7GsL4GCkhIEIuZ1Jqb+zmMcVqKdvnT98fid9lJOTnd3Nr0aQEU/KTmht4kIPJvktZ/bmY6g+CwVJYTbenajnrRlXU5XmdlJySMEQp/V3WPAXUToNk/uWtp2NjI2DOFxncDZY4DasWrgI0q7GqCAz0WQKARwAsX5nHY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58269+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588111038548352.05940021264416; Tue, 28 Apr 2020 14:57:18 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id GgN4YY1788612xL2ANhBre4N; Tue, 28 Apr 2020 14:57:18 -0700 X-Received: from mga06.intel.com (mga06.intel.com []) by mx.groups.io with SMTP id smtpd.web11.382.1588111035181534714 for ; Tue, 28 Apr 2020 14:57:16 -0700 IronPort-SDR: fW7zfJs6sFJkkS25dwehZa4+4nX5wDRKZqlXUVONQoEmF2DwJ3MGwCdnO140GsZkOlVM7Qo5Ho I+k3q9RieeNw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2020 14:57:13 -0700 IronPort-SDR: zt1K2uZsLa/0wsaolXRD2ae78nQlAryAsnW8m/kNmIi42qXEk40YBG//ruBwepwTsEsmDZ3w3X ot2u6+fnafBA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,328,1583222400"; d="scan'208";a="246642479" X-Received: from aedesimo-desk.amr.corp.intel.com ([10.7.159.171]) by orsmga007.jf.intel.com with ESMTP; 28 Apr 2020 14:57:13 -0700 From: "Ashley E Desimone" To: devel@edk2.groups.io Cc: Nate DeSimone , Puja Pandya , Erik Bjorge , Bret Barkelew , Prince Agyeman Subject: [edk2-devel] [edk2-staging/EdkRepo] [PATCH 6/7] EdkRepo: Add ability to determine the source manifest of a workspace Date: Tue, 28 Apr 2020 14:57:09 -0700 Message-Id: <20200428215710.45504-7-ashley.e.desimone@intel.com> In-Reply-To: <20200428215710.45504-1-ashley.e.desimone@intel.com> References: <20200428215710.45504-1-ashley.e.desimone@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: <27952.devel.edk2.groups.io> Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ashley.e.desimone@intel.com X-Gm-Message-State: NP5R7qtxqXq2EzSEZXGZODHQx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588111038; bh=XOV/4nGi2nIfZPZeotQzDx0K+M82W2xBoMNTud23a+0=; h=Cc:Date:From:Reply-To:Subject:To; b=jXIor1dHztxaa2aU35NuxwGplZV/GX1XWF84Axt9J+EEkrkA4696Rjme1aQEUugN/UJ ZD4czao4ks4MtrReR8we7T4oZYdcOEGOqdf6+rcTXmniha4VvGMF3XXx0XIs93ACPgD/N t5J6fhOTdQS0BWSZ/csIDIn9+K1X0ytcdaw= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add find_source_man_repo() to check if for the source manifest repo is contained in the workspaces project manifest file. If it is not determine the value and write it to the manifest. Signed-off-by: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya Cc: Erik Bjorge Cc: Bret Barkelew Cc: Prince Agyeman --- .../humble/manifest_repos_maintenance_humble.py | 2 ++ .../workspace_maintenance/manifest_repos_maintenance.py | 15 +++++++++++= ++++ 2 files changed, 17 insertions(+) diff --git a/edkrepo/common/workspace_maintenance/humble/manifest_repos_mai= ntenance_humble.py b/edkrepo/common/workspace_maintenance/humble/manifest_r= epos_maintenance_humble.py index e592f19..05e76b1 100644 --- a/edkrepo/common/workspace_maintenance/humble/manifest_repos_maintenanc= e_humble.py +++ b/edkrepo/common/workspace_maintenance/humble/manifest_repos_maintenanc= e_humble.py @@ -25,3 +25,5 @@ CONFLICT_NO_CLONE =3D ('The definition of global manifest= repository, {}, ' 'in the edkrepo_user.cfg does not match the definitio= n in the edkrepo.cfg. ' 'This global manifest repository will not be download= ed or updated. ' 'Resolve the conflict and then re-run the failed oper= ation') +SOURCE_MAN_REPO_NOT_FOUND =3D 'Could not determine the source global manif= est repository for project: {}' +PROJ_NOT_IN_REPO =3D 'Project: {} does not exist in any global manifest re= pository' \ No newline at end of file diff --git a/edkrepo/common/workspace_maintenance/manifest_repos_maintenanc= e.py b/edkrepo/common/workspace_maintenance/manifest_repos_maintenance.py index 9b441ac..7b3f866 100644 --- a/edkrepo/common/workspace_maintenance/manifest_repos_maintenance.py +++ b/edkrepo/common/workspace_maintenance/manifest_repos_maintenance.py @@ -199,5 +199,20 @@ def find_project_in_all_indices (project, edkrepo_cfg,= edkrepo_user_cfg, except_ return repo, 'edkrepo_user_cfg', os.path.join(dirp= ath, project) =20 =20 +def find_source_man_repo (project_manifest, edkrepo_cfg, edkrepo_user_cfg): + ''' + Finds the source manifest repo for a given project. + ''' + if project_manifest.general_config.source_man_repo: + return project_manifest.general_config.source_man_repo + else: + src_man_repo, src_config, src_man_path =3D find_project_in_all_ind= ices(project_manifest.project_info.codename, + = edkrepo_cfg, + = edkrepo_user_cfg, + = humble.PROJ_NOT_IN_REPO.format(project_manifest.project_info.codename), + = humble.SOURCE_MAN_REPO_NOT_FOUND.format(project_manifest.project_info.co= dename), + = man_repo=3DNone) + project_manifest.write_source_manifest_repo(src_man_repo) + return src_man_repo =20 =20 =20 --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#58269): https://edk2.groups.io/g/devel/message/58269 Mute This Topic: https://groups.io/mt/73340190/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-