From: "Ashley E Desimone" <ashley.e.desimone@intel.com>
To: devel@edk2.groups.io
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>,
Puja Pandya <puja.pandya@intel.com>,
Erik Bjorge <erik.c.bjorge@intel.com>,
Bret Barkelew <Bret.Barkelew@microsoft.com>,
Prince Agyeman <prince.agyeman@intel.com>
Subject: [edk2-staging/EdkRepo] [PATCH 1/2] EdkRepo: Add verify_single_manifest()
Date: Fri, 8 May 2020 16:46:35 -0700 [thread overview]
Message-ID: <20200508234636.18268-2-ashley.e.desimone@intel.com> (raw)
In-Reply-To: <20200508234636.18268-1-ashley.e.desimone@intel.com>
Signed-off-by: Ashley E Desimone <ashley.e.desimone@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Puja Pandya <puja.pandya@intel.com>
Cc: Erik Bjorge <erik.c.bjorge@intel.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Prince Agyeman <prince.agyeman@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
next prev parent reply other threads:[~2020-05-08 23:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 23:46 [edk2-staging/EdkRepo] [PATCH 0/2] EdkRepo: Update Clone Command Ashley E Desimone
2020-05-08 23:46 ` Ashley E Desimone [this message]
2020-05-08 23:46 ` [edk2-staging/EdkRepo] [PATCH 2/2] EdkRepo: Add multiple manifest repository support to clone Ashley E Desimone
2020-05-10 3:31 ` [edk2-devel] [edk2-staging/EdkRepo] [PATCH 0/2] EdkRepo: Update Clone Command Nate DeSimone
2020-05-10 3:38 ` Nate DeSimone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200508234636.18268-2-ashley.e.desimone@intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox