From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com []) by mx.groups.io with SMTP id smtpd.web10.1641.1587143914271097917 for ; Fri, 17 Apr 2020 10:18:34 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: ashley.e.desimone@intel.com) IronPort-SDR: qFhBPpAvLNiM7/ShsGWS1edJodRwSehUPFC5d/EKvnwaw51oqu5xiZ6rP3qmKUVpELJBTKt9c8 5u0AI5JGBtwg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2020 10:18:33 -0700 IronPort-SDR: USJDwImpUDXvevKWePkbFdS47gqETcL7fuhA1d6QW9b71k3bcfiu0ph5gqf2V93bXpcoTJOG0V ihmwnk98l7BQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,395,1580803200"; d="scan'208";a="243070609" Received: from aedesimo-desk.amr.corp.intel.com ([10.7.159.171]) by orsmga007.jf.intel.com with ESMTP; 17 Apr 2020 10:18:32 -0700 From: "Ashley E Desimone" To: devel@edk2.groups.io Cc: Nate DeSimone , Puja Pandya , Erik Bjorge , Bret Barkelew , Prince Agyeman Subject: [edk2-staging/EdkRepo] [PATCH v2 4/6] EdkRepo: Add manifest_repo_props() Date: Fri, 17 Apr 2020 10:18:27 -0700 Message-Id: <20200417171829.23032-5-ashley.e.desimone@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20200417171829.23032-1-ashley.e.desimone@intel.com> References: <20200417171829.23032-1-ashley.e.desimone@intel.com> Add the manifest_repo_props() function to the BaseConfig class which returns a list of all CfgProp objects for a given manifest repository. Signed-off-by: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya Cc: Erik Bjorge Cc: Bret Barkelew Cc: Prince Agyeman --- edkrepo/config/config_factory.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/edkrepo/config/config_factory.py b/edkrepo/config/config_factory.py index 6f89589..1afa221 100644 --- a/edkrepo/config/config_factory.py +++ b/edkrepo/config/config_factory.py @@ -118,6 +118,13 @@ class BaseConfig(): """Returns a list of available manifest repos""" if self.cfg.has_section('manifest-repos'): return self.cfg.options('manifest-repos') + + def manifest_repo_props(self, manifest_repo): + """ + Returns a list of cfg_prop objects that pertain to a given manifest + repo + """ + return [x for x in self.prop_list if manifest_repo in x.name] class GlobalConfig(BaseConfig): """ -- 2.16.2.windows.1