mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-13 10:29:56 +08:00
Fix #619: Support for module YAML file validation within a SCM repository
This commit is contained in:
@@ -494,9 +494,9 @@ def _fetch_mmd(url, branch=None, allow_local_url=False, whitelist_url=False):
|
||||
scm = module_build_service.scm.SCM(url, branch, [url], allow_local_url)
|
||||
else:
|
||||
scm = module_build_service.scm.SCM(url, branch, conf.scmurls, allow_local_url)
|
||||
cod = scm.checkout(td)
|
||||
scm.verify(cod)
|
||||
cofn = os.path.join(cod, (scm.name + ".yaml"))
|
||||
scm.checkout(td)
|
||||
scm.verify()
|
||||
cofn = scm.get_module_yaml()
|
||||
|
||||
with open(cofn, "r") as mmdfile:
|
||||
yaml = mmdfile.read()
|
||||
|
||||
Reference in New Issue
Block a user