Signed-off-by: Ashley E Desimone <ashley.e.desim...@intel.com>
Cc: Nate DeSimone <nathaniel.l.desim...@intel.com>
Cc: Puja Pandya <puja.pan...@intel.com>
Cc: Erik Bjorge <erik.c.bjo...@intel.com>
Cc: Bret Barkelew <bret.barke...@microsoft.com>
Cc: Prince Agyeman <prince.agye...@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/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to