From nobody Mon Feb 9 03:13:00 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+57492+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+57492+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1587094294; cv=none; d=zohomail.com; s=zohoarc; b=dM2DF9wxxglSCM8wrkOXsnCsTbcOQzix44UEX/FheWjKPPS5J6O2132bro+KInyz5i+JeQYvwnPpqfq8FOVMGyJ4WIBN2/15igzMv5cPiJopp4Ef2ULWZ7EFBe2sTedCV55imgWA3lzvSBGh89FDHHkZdSy+U7E7die9d/25IgY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587094294; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=zGBemut8Yi4cGwIFCSliK7L1nfq/M88C8XDbnI04Pcc=; b=fz+bsy3LU31WqhqTe9rs0FmC8QGDuCcBJNBwmLFEMUNFsNheUu6+vALKaK4WwQmCoz+nPkhux6IM/YWNYPBLZOyiC3hMBWIm2Q5jW3kn6cevbQgr9lAJBUT0TTR4oGmmGkhS2oPAFp58+eRcShcK/396FM0BQD1YeCo7S02YIDA= 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+57492+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 1587094294030759.6404908082484; Thu, 16 Apr 2020 20:31:34 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id zBrXYY1788612x0XjWKihr3u; Thu, 16 Apr 2020 20:31:33 -0700 X-Received: from mga14.intel.com (mga14.intel.com []) by mx.groups.io with SMTP id smtpd.web10.3735.1587094291698496893 for ; Thu, 16 Apr 2020 20:31:32 -0700 IronPort-SDR: pv6j/gkgNmq19KaPozIMQFRAQLLXqPdTi9se6KcFawOEiiR3+X7FEkUvcPMl2j44FoO23q9dGv hl9tFf3b3Nog== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2020 20:31:31 -0700 IronPort-SDR: mKYTuTMEFnjLAAE6fYBuIT536Jhtqol0xWmePJ3dX4DUPYDqKiS5FJ4QUU20FN1v9rXz7ft/pz g75qblKGDqZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,393,1580803200"; d="scan'208";a="333066529" X-Received: from aedesimo-desk.amr.corp.intel.com ([10.7.159.171]) by orsmga001.jf.intel.com with ESMTP; 16 Apr 2020 20:31:30 -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/6] EdkRepo: Add 'get' functions for Manifest Repo data Date: Thu, 16 Apr 2020 20:31:23 -0700 Message-Id: <20200417033123.34972-7-ashley.e.desimone@intel.com> In-Reply-To: <20200417033123.34972-1-ashley.e.desimone@intel.com> References: <20200417033123.34972-1-ashley.e.desimone@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: 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: 4b7rgGnywBplHEx6bRTOhlAnx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1587094293; bh=lMaO6opsXaMvdB10crFAhbh/SpoQk7h6tbwZ+5trOV4=; h=Cc:Date:From:Reply-To:Subject:To; b=INIJEvddHD15R/J5z8vLQb3bCFUHTrU7XU1MxzMrOIudSRgJ0U8GJPD10+DS3xvy7ca DBwc6W6ORUBt8APCPD1lK3X3YliTUeQ4PUe//Uqqb+ozhCK50pJ3XNeJQOfDvpJP3sriy h6xLtn4OkeOqigw+OYa0KY1CVWWdm1HGrBE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Added functions to get the URL, LocalPath, Branch and the absolute path for individual manifest repositories to the BaseConfig class. Signed-off-by: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya Cc: Erik Bjorge Cc: Bret Barkelew Cc: Prince Agyeman Reviewed-by: Erik Bjorge --- edkrepo/config/config_factory.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/edkrepo/config/config_factory.py b/edkrepo/config/config_facto= ry.py index a4daba3..022e0bb 100644 --- a/edkrepo/config/config_factory.py +++ b/edkrepo/config/config_factory.py @@ -131,6 +131,43 @@ class BaseConfig(): repo_props.append(prop) return repo_props =20 + def get_manifest_repo_url(self, manifest_repo): + """=20 + Returns the URL value for a given manifest repo based on config + file contents. + """ + for prop in self.manifest_repo_props(manifest_repo): + if 'URL' =3D=3D prop.key: + return self.cfg[prop.section][prop.key] + return None + + def get_manifest_repo_branch(self, manifest_repo): + """ + Returns the Branch value for a given manifest repo based on config= file + contents. + """ + for prop in self.manifest_repo_props(manifest_repo): + if 'Branch' =3D=3D prop.key: + return self.cfg[prop.section][prop.key] + return None + + def get_manifest_repo_local_path(self, manifest_repo): + """ + Returns the Local path value for a given manifest repo based on co= nfig + file contents. + """ + for prop in self.manifest_repo_props(manifest_repo): + if 'LocalPath' =3D=3D prop.key: + return self.cfg[prop.section][prop.key] + return None + + def manifest_repo_abs_path(self, manifest_repo): + """ + Returns the absolute path of a single manifest repo based on config + file contents and the global_data_dir location. + """ + return os.path.join(self.global_data_dir, self.get_manifest_repo_l= ocal_path(manifest_repo)) + class GlobalConfig(BaseConfig): """ Class access structure for the edkrepo.cfg file. This file is read on= ly and maintained by the --=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 (#57492): https://edk2.groups.io/g/devel/message/57492 Mute This Topic: https://groups.io/mt/73070624/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-