Skip to content

Commit

Permalink
fix: ilc_url_for_version support for v00-04-pre patch levels (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Jan 3, 2025
1 parent fca281f commit 65fa0f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/key4hep-stack/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ def ilc_url_for_version(self, version):
# on the value of the patch version
if patch == 0:
version_str = "v%02d-%02d.tar.gz" % (major, minor)
else:
elif isinstance(patch, int):
version_str = "v%02d-%02d-%02d.tar.gz" % (major, minor, patch)
else: # allow for v00-04-pre
version_str = "v%02d-%02d-%s.tar.gz" % (major, minor, patch)
return base_url + "/" + version_str


Expand Down

0 comments on commit 65fa0f2

Please sign in to comment.