mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Fix pipeline
This commit is contained in:
parent
aaf2261391
commit
058778371d
2 changed files with 9 additions and 1 deletions
|
|
@ -339,6 +339,7 @@ def download_and_build_plugins(plugins, vendor_prefix):
|
||||||
proto = get_option_value(plugin, "proto")
|
proto = get_option_value(plugin, "proto")
|
||||||
dm_files = get_option_value(plugin, "dm_files")
|
dm_files = get_option_value(plugin, "dm_files")
|
||||||
extra_dependencies = get_option_value(plugin, "extra_dependencies", [])
|
extra_dependencies = get_option_value(plugin, "extra_dependencies", [])
|
||||||
|
repo_path = None
|
||||||
|
|
||||||
if repo is None or proto is None or dm_files is None or not isinstance(dm_files, list):
|
if repo is None or proto is None or dm_files is None or not isinstance(dm_files, list):
|
||||||
print("Necessary input missing")
|
print("Necessary input missing")
|
||||||
|
|
@ -362,6 +363,11 @@ def download_and_build_plugins(plugins, vendor_prefix):
|
||||||
elif proto == "local":
|
elif proto == "local":
|
||||||
repo_path = repo
|
repo_path = repo
|
||||||
print(f' Processing {get_repo_version_info(repo, proto)}')
|
print(f' Processing {get_repo_version_info(repo, proto)}')
|
||||||
|
|
||||||
|
if repo_path is None:
|
||||||
|
print("Repository path not defined!!!")
|
||||||
|
BBF_ERROR_CODE += 1
|
||||||
|
continue
|
||||||
|
|
||||||
LIST_FILES = []
|
LIST_FILES = []
|
||||||
os.chdir(repo_path)
|
os.chdir(repo_path)
|
||||||
|
|
|
||||||
|
|
@ -746,6 +746,8 @@ def convert_xml_to_json(file_path):
|
||||||
proto = "usp"
|
proto = "usp"
|
||||||
else:
|
else:
|
||||||
proto = "both"
|
proto = "both"
|
||||||
|
|
||||||
|
model = None
|
||||||
|
|
||||||
for child in XML_ROOT:
|
for child in XML_ROOT:
|
||||||
if child.tag == "dataType":
|
if child.tag == "dataType":
|
||||||
|
|
@ -754,7 +756,7 @@ def convert_xml_to_json(file_path):
|
||||||
if child.tag == "model":
|
if child.tag == "model":
|
||||||
model = child
|
model = child
|
||||||
|
|
||||||
if model.tag != "model":
|
if model is None or model.tag != "model":
|
||||||
print("Wrong {} XML Data model format!".format(file_path))
|
print("Wrong {} XML Data model format!".format(file_path))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue