From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com []) by mx.groups.io with SMTP id smtpd.web11.1562.1588981599947016545 for ; Fri, 08 May 2020 16:46:40 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: ashley.e.desimone@intel.com) IronPort-SDR: OhL5kw2TEMJSYcvbqT2PrRJbxWLDL1atUODQCPLP/2i9mGXzXGBhAg9mKm8QujT5gXYq/0RW11 ivv3KxoRFFLA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2020 16:46:39 -0700 IronPort-SDR: ZZJ0Xk/ovTuHBHJH+wnD0TaPHYA3hlOb77/62SdA3nGNVeGGKNHILS4qNs5IqIkwWoaEAGWc/U ld/vG4P3aO+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,369,1583222400"; d="scan'208";a="264545623" Received: from aedesimo-desk.amr.corp.intel.com ([10.212.16.147]) by orsmga006.jf.intel.com with ESMTP; 08 May 2020 16:46:39 -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 1/2] EdkRepo: Add verify_single_manifest() Date: Fri, 8 May 2020 16:46:35 -0700 Message-Id: <20200508234636.18268-2-ashley.e.desimone@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20200508234636.18268-1-ashley.e.desimone@intel.com> References: <20200508234636.18268-1-ashley.e.desimone@intel.com> Signed-off-by: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya Cc: Erik Bjorge Cc: Bret Barkelew Cc: Prince Agyeman --- edkrepo/common/common_repo_functions.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/edkrepo/common/common_repo_functions.py b/edkrepo/common/common_repo_functions.py index 485aa26..20dcb8a 100644 --- a/edkrepo/common/common_repo_functions.py +++ b/edkrepo/common/common_repo_functions.py @@ -426,6 +426,17 @@ def verify_manifest_data(global_manifest_directory, config, verbose=False, verif if verbose: print_manifest_errors(manifestfile_validation_data) +def verify_single_manifest(cfg_file, manifest_repo, manifest_path, verbose=False): + manifest = ManifestXml(manifest_path) + print(VERIFY_PROJ.format(manifest.project_info.codename)) + index_path = os.path.join(cfg_file.manifest_repo_abs_path(manifest_repo), CI_INDEX_FILE_NAME) + proj_val_data = validate_manifestfiles(index_path, [manifest_path]) + proj_val_error = get_manifest_validation_status(proj_val_data) + if proj_val_error: + if verbose: + print_manifest_errors(proj_val_data) + raise EdkrepoManifestInvalidException(VERIFY_PROJ_FAIL.format(manifest.project_info.codename)) + def sort_commits(manifest, workspace_path, max_commits=None): colorama.init() repo_sources_to_log = manifest.get_repo_sources(manifest.general_config.current_combo) -- 2.16.2.windows.1