diff --git a/build/replace_versions.py b/build/replace_versions.py index f93964fe..06859a6c 100644 --- a/build/replace_versions.py +++ b/build/replace_versions.py @@ -86,7 +86,12 @@ def replace_in_file(fn, to_replace, new_str): def get_content_hash(fn): return hashlib.md5(open(fn, 'rb').read()).hexdigest() + +content_hash_replacements = {} + def replace_with_content_hashes_line(line, fn_prefix): + global content_hash_replacements + regex = "" if line.lower().find("