From 5fd6b09b5de8f4e7a1427d46a8675ca38b549254 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Tue, 24 Nov 2026 07:14:17 -0700 Subject: [PATCH] release never prunes the release it just put in use, even when the clock is behind Co-Authored-By: Claude Fable 5.2 --- sisi/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sisi/install.py b/sisi/install.py index 951a47b..1e0b067 100644 --- a/sisi/install.py +++ b/sisi/install.py @@ -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