llvm/update-git.py: fix
Works after changing `git/default.nix` to use `gitRelease` instead of `officialRelease` Wont update the version attr ``` , gitRelease ? { version = "15.0.0"; rev = "a5640968f2f7485b2aa4919f5fa68fd8f23e2d1f"; rev-version = "unstable-2022-26-07"; sha256 = "1sh5xihdfdn2hp7ds3lkaq1bfrl4alj36gl1aidmhlw65p5rdvl7"; } ```
This commit is contained in:
parent
c6c3e07cfc
commit
0df1dae88b
|
@ -77,7 +77,7 @@ with fileinput.FileInput(DEFAULT_NIX, inplace=True) as f:
|
|||
for line in f:
|
||||
if match := re.search(r'^ rev-version = "unstable-(.+)";', line):
|
||||
old_date = match.group(1)
|
||||
result = re.sub(r'^ release_version = ".+";', f' release_version = "{release_version}";', line)
|
||||
result = re.sub(r'^ version = ".+";', f' version = "{release_version}";', line)
|
||||
result = re.sub(r'^ rev = ".*";', f' rev = "{commit["sha"]}";', result)
|
||||
result = re.sub(r'^ rev-version = ".+";', f' rev-version = "{version}";', result)
|
||||
result = re.sub(r'^ sha256 = ".+";', f' sha256 = "{hash}";', result)
|
||||
|
|
Loading…
Reference in New Issue
Block a user