release never prunes the release it just put in use, even when the clock is behind
ci / test (push) Canceled after 0s

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-24 07:14:17 -07:00
1 parent 7a8afcbe69
commit 5fd6b09b5d
1 file changed
+1 -1
+1 -1
View File
@@ -243,7 +243,7 @@ def release():
store.write(os.path.join(dest, "SOURCE"), "%s\n%s\n" % (_source(), os.path.abspath(store.ROOT)))
_switch(dest)
subprocess.run([os.path.join(dest, "bin", "sisi"), "rulebook"])
for old in sorted(os.listdir(folder))[:-4]:
for old in [o for o in sorted(os.listdir(folder)) if o != name][:-3]: # never the one just put in use, even when the clock is behind
shutil.rmtree(os.path.join(folder, old), ignore_errors=True)
print("released %s" % name)
return 0