Skip to content
Snippets Groups Projects
Commit 40e5f57d authored by s2870355's avatar s2870355
Browse files

fix multiple

parent 68fb0706
No related branches found
No related tags found
No related merge requests found
Pipeline #70202 passed
......@@ -37,12 +37,12 @@ def extract_info(file_path : str) -> dict:
if '[' in line:
info["artifacts"] = normalize_depends(file_path,ast.literal_eval(line.removeprefix("#artifacts: ")))
else:
info["artifacts"] = os.path.join(os.path.dirname(info["location"]), line.removeprefix("#artifacts: ").replace('/', os.path.sep))
info["artifacts"] = [os.path.join(os.path.dirname(info["location"]), line.removeprefix("#artifacts: ").replace('/', os.path.sep))]
if line.startswith("#cache: "):
if '[' in line:
info["cache"] = normalize_depends(file_path,ast.literal_eval(line.removeprefix("#cache: ")))
else:
info["cache"] = os.path.join(os.path.dirname(info["location"]), line.removeprefix("#cache: ").replace('/', os.path.sep))
info["cache"] = [os.path.join(os.path.dirname(info["location"]), line.removeprefix("#cache: ").replace('/', os.path.sep))]
if line.startswith("#enable: false"):
return None
if "image" not in info:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment