Skip to content

Commit

Permalink
update regexp for wasmedge version (#2356)
Browse files Browse the repository at this point in the history
* update regexp for wasmedge version

* Fix for heads

---------

Co-authored-by: Kirill Azovtsev <[email protected]>
  • Loading branch information
kamilsa and Kirill Azovtsev authored Jan 27, 2025
1 parent 53b26a2 commit 267302e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion housekeeping/docker/kagome-dev/get_wasmedge_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def extract_version(config_file_path, package_name):
with open(config_file_path, 'r') as file:
content = file.read()

version_pattern = re.compile(r'hunter_config\(\s*' + re.escape(package_name) + r'\s*.*?URL\s+.*?/heads/.*?/([^\s/]+)\.zip', re.DOTALL)
version_pattern = re.compile(r'hunter_config\(\s*' + re.escape(package_name) + r'\s*.*?URL\s+.*?/(?:heads/.*?|tags)/([^\s/]+)\.zip', re.DOTALL)
version_match = version_pattern.search(content)

version = version_match.group(1) if version_match else None
Expand Down

0 comments on commit 267302e

Please sign in to comment.