From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com []) by mx.groups.io with SMTP id smtpd.web10.3734.1587094291266785285 for ; Thu, 16 Apr 2020 20:31:31 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: ashley.e.desimone@intel.com) IronPort-SDR: UQu79APjvehIPW4ep4mf3ycWJQgS+qOTbOIzk13u1Wu1RXug9QXH1JbbcKzB1Pa7nA+1g+m8qt BZrZAuxxzESQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False 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:30 -0700 IronPort-SDR: CsTDe84WTAQ/QYzqCg7/PAAoxDm8bZuiUW1kXVSyJSs0jTdyY4qFMGk9qf5oMSVY5BPvdUkiOJ gt7XE/jEF3Xw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,393,1580803200"; d="scan'208";a="333066521" 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-staging/EdkRepo] [PATCH 3/6] EdkRepo: Add the manifest_repo_list property to BaseConfig Date: Thu, 16 Apr 2020 20:31:20 -0700 Message-Id: <20200417033123.34972-4-ashley.e.desimone@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20200417033123.34972-1-ashley.e.desimone@intel.com> References: <20200417033123.34972-1-ashley.e.desimone@intel.com> Add the manifest_repo_list property to the BaseConfig class to return a list of manfiest repo sections in the config file. 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/edkrepo/config/config_factory.py b/edkrepo/config/config_factory.py index 6c14f1b..6f89589 100644 --- a/edkrepo/config/config_factory.py +++ b/edkrepo/config/config_factory.py @@ -113,6 +113,12 @@ class BaseConfig(): with open(self.filename, 'w') as cfg_stream: self.cfg.write(cfg_stream) + @property + def manifest_repo_list(self): + """Returns a list of available manifest repos""" + if self.cfg.has_section('manifest-repos'): + return self.cfg.options('manifest-repos') + class GlobalConfig(BaseConfig): """ Class access structure for the edkrepo.cfg file. This file is read only and maintained by the -- 2.16.2.windows.1