mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-02 01:42:18 +00:00
[openasar-canary] save commit on auto update
this was an L and i probably need sleep
This commit is contained in:
@@ -21,3 +21,10 @@ cur = matches[0]
|
||||
if sha == cur:
|
||||
exit(f"{NAME}: Up to date!")
|
||||
print(f"{NAME}: {cur} -> {sha}")
|
||||
|
||||
newspec = re.sub(REGEX_SHA, f"%define commit {sha}", txt)
|
||||
|
||||
f.close()
|
||||
f = open(SPEC, "w")
|
||||
f.write(newspec)
|
||||
f.close()
|
||||
|
||||
Reference in New Issue
Block a user