Skip to content

Commit

Permalink
Fix the fetch_nightly_versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Mar 19, 2024
1 parent 23c7630 commit 6741adc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/fetch_nightly_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def get_latest_commit(
("raida", "ilcsoft/raida"),
("sio", "ilcsoft/sio"),
]:
if package != 'dd4hep':
continue
gitlab = False
if package in ["opendatadetector"]:
gitlab = True
Expand All @@ -149,6 +151,7 @@ def get_latest_commit(
if package in text["packages"] and "require" in text["packages"][package]:
original = text["packages"][package]["require"]
text["packages"][package]["require"] = line + original
print(f"text is {text['packages'][package]['require']}")
elif (
package in text_extra["packages"]
and "require" in text_extra["packages"][package]
Expand All @@ -158,9 +161,9 @@ def get_latest_commit(

if not text["packages"][package]:
print(f"Adding {package}@{commit} to the key4hep-stack package.py")
text["packages"][package]["require"] = line
else:
print(f"Updating {package}@{commit} in the key4hep-stack package.py")
text["packages"][package]["require"] = line

with open(args.path, "w") as recipe:
yaml.dump(text, recipe)
Expand Down

0 comments on commit 6741adc

Please sign in to comment.