Skip to content

Commit 13dc6a9

Browse files
authored
Fix minor bugs in script to update dependencies (#6150)
Fix a minor bug that I found while testing the same tool in AMReX-Codes/pyamrex#474.
1 parent dbb09d7 commit 13dc6a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tools/Release/update_dependencies.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# License: BSD-3-Clause-LBNL
66

77
import argparse
8+
import copy
89
import datetime
910
import json
1011
import os
@@ -83,6 +84,7 @@ def update(args):
8384
tags_response = requests.get(repo_subdict["tags"])
8485
tags_list = tags_response.json()
8586
# filter out old-format tags for specific repositories
87+
tags_list_filtered = copy.deepcopy(tags_list)
8688
if repo_name == "amrex":
8789
tags_list_filtered = [
8890
tag_dict
@@ -108,7 +110,7 @@ def update(args):
108110
if repo_name != "warpx":
109111
print(f"- old commit: {dependencies_data[commit_key]}")
110112
print(f"- new commit: {new_commit_sha}")
111-
if dependencies_data[commit_key] == repo_commit_sha:
113+
if dependencies_data[commit_key] == new_commit_sha:
112114
print("Skipping commit update...")
113115
else:
114116
print("Updating commit...")

0 commit comments

Comments
 (0)