From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web12.3052.1587136142849743620 for ; Fri, 17 Apr 2020 08:09:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=RZiItOQQ; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: erik.c.bjorge@intel.com) IronPort-SDR: 6RW1TO0m3s2LIvNZdOSTwCukn2ngyk/w9N3VymArrl2eEDP62I6aB1NM8SjjEwccpcoEXGbYR7 aA/Onh3rY70Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2020 08:08:56 -0700 IronPort-SDR: ZFjodqHJ5hkhgG6ZaOKOaCd92FvRy9hBFb8dwWZGdnqu2FfHsWsen4fza/jUm4XBk7rIWIu1pP 2mLd3R/iRdDQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,395,1580803200"; d="scan'208";a="279838846" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 17 Apr 2020 08:08:55 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 17 Apr 2020 08:08:54 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 17 Apr 2020 08:08:53 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 17 Apr 2020 08:08:49 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FZEBrdjIUZog8Loj1LKMjL/FTaZR9egACcvGgRlhqsa9U/1L9jAjOdm804GumeLJrPlDU3w/sXUn/jwsfsNQ2WQpyrMkDisqdXrIKvQimLks3lp2JHRDE8OYWwhQ12XxefhCmx4YEPZpMQgyneA+LY/7ZciIw2WiiOOWyN2NcFWaaED6Uu9kDc4aClWQtxOK2+REsY0Pqz2kuZv+uDJ+GzYbHXzj0Ok8sp4cz2HGowE8efAoHRijwUgJWmM2IMGzitA7FyKfqhRdy/m60m2eiUBrtQp1XEeAjARIdRvzBjloTyupZOshUP9lfW8nNugbmvs8XK+vC5EenI42g+OlKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JjG6Lg/VrR2jwjQKFw2wruYtvUcqD4rJY4hcYL51H3w=; b=B0bmNJahQ5EHFPTF0MZehKES5AMLFcJN25BbF+fZImq5ngA2aMwVrBhQwgbMvAOo17HABk3IznehNbnheAixmQN5DgtxnkHKebQ0OIPeFXWvVfhksTOIxh+MTkC1MG8P2IGsHUoI9Wlz3FHF2dRagGBnEq6SKg0kNOxHW/zktv3Flb+3ImC/d5kt6t66FApbbvnWtFPV9e+gjQiiRZXV4Jlj14tjD1FRGTQGJmZrXA0CDWXPJaiYgC/cPp4j6pQWXQNjKNm6jDqsdcl7VBYn/+BtB5sIDKNUD07A/WL3rHCFehA/iffZ2BhJWPrV5ZrYNtwvNHECEY/01Aag9s9Bpg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JjG6Lg/VrR2jwjQKFw2wruYtvUcqD4rJY4hcYL51H3w=; b=RZiItOQQpfCrWQAaWy7t5ZzViZuOmHwI7reAX+EWsZc+tWQs5bixKTkp4EF6al6kI5FCLsvARzi9uWA39yFYNB4d1zihePSeuy4XVZRcfFXZJ898m1eMZiSdhh1FV2PAJDAYa+W5unVMdCCoQ3SK3hJOZp2/fen7K6kdy/QnnDw= Received: from MW3PR11MB4554.namprd11.prod.outlook.com (2603:10b6:303:5d::7) by MW3PR11MB4618.namprd11.prod.outlook.com (2603:10b6:303:5f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.29; Fri, 17 Apr 2020 15:08:48 +0000 Received: from MW3PR11MB4554.namprd11.prod.outlook.com ([fe80::c569:9903:4c10:9281]) by MW3PR11MB4554.namprd11.prod.outlook.com ([fe80::c569:9903:4c10:9281%5]) with mapi id 15.20.2921.027; Fri, 17 Apr 2020 15:08:48 +0000 From: "Bjorge, Erik C" To: "Desimone, Ashley E" , "devel@edk2.groups.io" CC: "Desimone, Nathaniel L" , "Pandya, Puja" , Bret Barkelew , "Agyeman, Prince" Subject: Re: [edk2-staging/EdkRepo] [PATCH 4/6] EdkRepo: Add manifest_repo_props() Thread-Topic: [edk2-staging/EdkRepo] [PATCH 4/6] EdkRepo: Add manifest_repo_props() Thread-Index: AQHWFGi8zMFhvaDMA0ysK+/VYwwNGah9aoGA Date: Fri, 17 Apr 2020 15:08:47 +0000 Message-ID: References: <20200417033123.34972-1-ashley.e.desimone@intel.com> <20200417033123.34972-5-ashley.e.desimone@intel.com> In-Reply-To: <20200417033123.34972-5-ashley.e.desimone@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows authentication-results: spf=none (sender IP is ) smtp.mailfrom=erik.c.bjorge@intel.com; x-originating-ip: [192.55.52.194] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 64f591e5-4d05-46b4-190d-08d7e2e13b34 x-ms-traffictypediagnostic: MW3PR11MB4618: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0376ECF4DD x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR11MB4554.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10019020)(39860400002)(136003)(376002)(346002)(366004)(396003)(9686003)(71200400001)(55016002)(5660300002)(2906002)(8676002)(81156014)(8936002)(33656002)(86362001)(107886003)(4326008)(26005)(186003)(478600001)(52536014)(316002)(66476007)(76116006)(66446008)(64756008)(66556008)(66946007)(54906003)(110136005)(7696005)(6506007)(53546011);DIR:OUT;SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FhstDqz99gve71QYTCPQEAvxYDfhBgBnxQwemem42lS3N4aZ5l8mFwJ3aBsHPuHlt0a9dNPtUIMBdfbqOZ9ve2k3TUay0Oq3wN47O/NTims1mMcT4l1SCbVnCvlC/3kcPDqMgzXWEjeP34Fo5l+gZszcCuE0wVb3z6IWiBRnQQtVJPmruJgAwhYM/ayJRpqSZDNG+fQtdaAz6vfDzTGBH3IJdafqZV3j6CahSAEhnhcSCjUs9KR2LPx0HQe/KNLW9hzLMrprSX7TBeBldb//XrzZ83S52dOmtGJRUDTXUgTSUHG6MGtyu03T9PYTElWx2e+P9QiYXeBsqQyTnIjgk3I8tTVdPhYku9jU46znTG6AvjstVpbKc7zMyCe9qGc6HZcT/NAH80vJIHmCevrePTwaz4NNYNFNQF7uiUh/0BsbIrF9icTDZY+ih9WolhfU x-ms-exchange-antispam-messagedata: pNxH8fj2+9Y2UtHnnq+m+LDElHmS+EyH9Ok3U32I6qDL2l7WHMwmtKEdv5RCtnoUFuunmWWdzQILaRCcU5ehSH+/0t87fCWDBmRqCFBhGWuD5Sw9v+YNS6wG6ezBZw3M4CELMVEfLQ8R5sJnLRFSew== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 64f591e5-4d05-46b4-190d-08d7e2e13b34 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2020 15:08:48.0085 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WOu4GzoFS1cMjPr1geNqzLFNClrcK7QMnwmUW0fspx9UFAVq9MjbQ0+2yxj+LwdsWv+6IH3RaLpMizsalw/+6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4618 Return-Path: erik.c.bjorge@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Why is this not a list comprehension? return [x for x in self.prop_list if manifest_repo in x.name] -----Original Message----- From: Desimone, Ashley E =20 Sent: Thursday, April 16, 2020 8:31 PM To: devel@edk2.groups.io Cc: Desimone, Nathaniel L ; Pandya, Puja ; Bjorge, Erik C ; Bret Barke= lew ; Agyeman, Prince Subject: [edk2-staging/EdkRepo] [PATCH 4/6] EdkRepo: Add manifest_repo_prop= s() Add the manifest_repo_props() function to the BaseConfig class which return= s 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/edkrepo/config/config_factory.py b/edkrepo/config/config_facto= ry.py index 6f89589..e053f8b 100644 --- a/edkrepo/config/config_factory.py +++ b/edkrepo/config/config_factory.py @@ -118,6 +118,17 @@ class BaseConfig(): """Returns a list of available manifest repos""" if self.cfg.has_section('manifest-repos'): return self.cfg.options('manifest-repos') + =20 + def manifest_repo_props(self, manifest_repo): + """ + Returns a list of cfg_prop objects that pertain to a given manifes= t + repo + """ + repo_props =3D [] + for prop in self.prop_list: + if manifest_repo in prop.name: + repo_props.append(prop) + return repo_props =20 class GlobalConfig(BaseConfig): """ -- 2.16.2.windows.1