From nobody Mon Feb 9 00:31:05 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+58267+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+58267+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1588111037; cv=none; d=zohomail.com; s=zohoarc; b=PDlppic0ED75Mvxyb1hzrbCppfpJosKNMgwLcoNcWjVlmcsEAv/JyK7IJMo5A96IoPhmdnb/jq7xLXgcx0EEAV6Kl8kJjLknC7kD/VIDBasxNOyhyL1BVTpEPXPPLMMy+An81w131QIrqe6L0Ht62SqxS4myWcSulsnO1AKnnAg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588111037; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=ymwTJmN39gdC1qDCMyAB7dhU5EQPzj5W/nLD2vUp+EQ=; b=JF9xe4bv7zc5+mKKCj0z5sNbSgrJg4NOSiJzBmy313KCE06C6GhlVBkOVQ6Jg5QF8pYXb0FHAQWWfRoAcIUngiSubZXDYyuTovpZgRkIJewDdwVw3hRprKP34kX923Jl3QYJyAmZMNIkHd8EkNYqIBfFa9tQzgHMoXbnvfSPwZA= 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+58267+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 1588111037346182.3782103163261; Tue, 28 Apr 2020 14:57:17 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id VgA0YY1788612xWwILVhxx6J; Tue, 28 Apr 2020 14:57:17 -0700 X-Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web10.407.1588111036004922289 for ; Tue, 28 Apr 2020 14:57:16 -0700 IronPort-SDR: PBECau0orIXhDAdUXrZnH8PBHRtVTnDcvq/UMzyL9LinFu3kIb+2LsG7y8jpvNru7GMjRbRGuP 9uSoKiRhxcBw== 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: RL3lmaIKmV2u0+ZVPWK2WuJgU0K2+RG+KwwwQoFCrH5NW16N01sYzcXTmi8jf67zSRygR+4Ag/ Iih7g0uYFxkg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,328,1583222400"; d="scan'208";a="246642467" 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 1/7] EdkRepo: Add check for conflicting/duplicated manifest repo definitions Date: Tue, 28 Apr 2020 14:57:04 -0700 Message-Id: <20200428215710.45504-2-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: RXHrcBoaF1QnwlaSlOcYdoW8x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588111037; bh=YYsz4r1WoQVKh8oQAQv7zHdgnS/zGDaSUd2duFqRCh4=; h=Cc:Date:From:Reply-To:Subject:To; b=AiFgBxK/hOhHfLLL5fmKhIh1ucmLEJgkp0Wg/CGmK+8O/tOx1wrhIwS0PXF5wG1ITn7 oK4Hz8MurGqkdk89cHZoGlH+kYlmebzjWt6mDcG30evXAxm8/A9kfclNj86Pl8xogcvTN vwY3+ALtg3NjBE3Zo5xVIWgiegqHKf8cMdI= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add a functions to check for conflicting or duplicated manifest repository definitions in the edkrepo.cfg and the edkrepo_user.cfg files. Two manifest repositories definitions are considered conflicting if they have the same name and at least one of URL, branch or local path differ. Two manifest repository definitions are considered duplicates if the name, URL, branch and local path are the same. Signed-off-by: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya Cc: Erik Bjorge Cc: Bret Barkelew Cc: Prince Agyeman --- .../manifest_repos_maintenance.py | 25 ++++++++++++++++++= ++++ 1 file changed, 25 insertions(+) diff --git a/edkrepo/common/workspace_maintenance/manifest_repos_maintenanc= e.py b/edkrepo/common/workspace_maintenance/manifest_repos_maintenance.py index 6e26d4f..ad6ddbc 100644 --- a/edkrepo/common/workspace_maintenance/manifest_repos_maintenance.py +++ b/edkrepo/common/workspace_maintenance/manifest_repos_maintenance.py @@ -57,3 +57,28 @@ def pull_single_manifest_repo(url, branch, local_path, r= eset_hard=3DFalse): print (humble.CLONE_SINGLE_MAN_REPO.format(local_path, url)) repo =3D Repo.clone_from(url, local_path, progress=3DGitProgre= ssHandler(), branch=3Dbranch) =20 +def detect_man_repo_conflicts_duplicates(edkrepo_cfg, edkrepo_user_cfg): + ''' + Determines whether there is are conflicting or duplicated manifest + repositories listed in the edkrepo.cfg and the edkrepo_user.cfg. + ''' + conflicts =3D [] + duplicates =3D [] + if not edkrepo_user_cfg.manifest_repo_list: + return conflicts, duplicates + else: + config_repos =3D set(edkrepo_cfg.manifest_repo_list) + user_cfg_repos =3D set(edkrepo_user_cfg.manifest_repo_list) + if config_repos.isdisjoint(user_cfg_repos): + return conflicts, duplicates + else: + for repo in config_repos.intersection(user_cfg_repos): + if edkrepo_cfg.get_manifest_repo_url(repo) !=3D edkrepo_user_c= fg.get_manifest_repo_url(repo): + conflicts.append(repo) + elif edkrepo_cfg.get_manifest_repo_branch(repo) !=3D edkrepo_u= ser_cfg.get_manifest_repo_branch(repo): + conflicts.append(repo) + elif edkrepo_cfg.get_manifest_repo_local_path(repo) !=3D edkre= po_user_cfg.get_manifest_repo_local_path(repo): + conflicts.append(repo) + else: + duplicates.append(repo) + return conflicts, duplicates --=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 (#58267): https://edk2.groups.io/g/devel/message/58267 Mute This Topic: https://groups.io/mt/73340188/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-