diff --git a/scripts/fetch_nightly_versions.py b/scripts/fetch_nightly_versions.py index 86f5677f..bd21bdea 100755 --- a/scripts/fetch_nightly_versions.py +++ b/scripts/fetch_nightly_versions.py @@ -162,7 +162,7 @@ def get_latest_commit( 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) - with open(args.extra_path, "w") as recipe: - yaml.dump(text_extra, recipe) + with open(args.path, "w") as recipe: + yaml.dump(text, recipe) + with open(args.extra_path, "w") as recipe: + yaml.dump(text_extra, recipe)