[edk2-devel] [edk2-staging/EdkRepo] [PATCH 1/2] EdkRepo: Add verify_single_manifest()
Ashley E Desimone
ashley.e.desimone at intel.com
Fri May 8 23:46:35 UTC 2020
Signed-off-by: Ashley E Desimone <ashley.e.desimone at intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone at intel.com>
Cc: Puja Pandya <puja.pandya at intel.com>
Cc: Erik Bjorge <erik.c.bjorge at intel.com>
Cc: Bret Barkelew <Bret.Barkelew at microsoft.com>
Cc: Prince Agyeman <prince.agyeman at intel.com>
---
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
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#58919): https://edk2.groups.io/g/devel/message/58919
Mute This Topic: https://groups.io/mt/74086767/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list