aboutsummaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-21 10:32:55 +0200
committerDanilo M. <danix@danix.xyz>2026-10-21 10:32:55 +0200
commitbe69467c2caefddc1f04d5be71d36f6b8d9c13d3 (patch)
treeb7aa71813e656da82187422181ca3f75501e0d3e /remote
parent88d83139b2cf6fa22df823054936a49d14f4f554 (diff)
downloadsb-builder-be69467c2caefddc1f04d5be71d36f6b8d9c13d3.tar.gz
sb-builder-be69467c2caefddc1f04d5be71d36f6b8d9c13d3.zip
sbb-remote 0.11.0: rebuild-tree job (phase 3)
New job kind rebuild-tree runs slackrepo_setup_SBo-danix.sh, which now builds the fresh tree beside the live one and swaps it in. The Jobs tab gets a Rebuild tree action behind a modal confirm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'remote')
-rwxr-xr-xremote/sbb-remote10
1 files changed, 8 insertions, 2 deletions
diff --git a/remote/sbb-remote b/remote/sbb-remote
index cabb8d1..ace4fb9 100755
--- a/remote/sbb-remote
+++ b/remote/sbb-remote
@@ -41,7 +41,7 @@ import time
import tomllib
import urllib.request
-VERSION = "0.10.0"
+VERSION = "0.11.0"
DEFAULTS = {
"state_dir": "/var/lib/sb-builder",
"repo_dir": "/var/lib/sbopkg/SBo-danix",
@@ -155,6 +155,12 @@ def kind_publish(cfg, args):
return ["sb-publish"], {}
+def kind_rebuild_tree(cfg, args):
+ if args:
+ raise Error("rebuild-tree takes no arguments")
+ return ["slackrepo_setup_SBo-danix.sh"], {}
+
+
def _pkgmap(cfg):
"""{package: category/package} of the repo."""
return {os.path.basename(d): os.path.relpath(d, cfg["repo_dir"])
@@ -216,7 +222,7 @@ def _self_job(kind):
KINDS = {"sbpull": kind_sbpull, "sbshadow": kind_sbshadow,
- "slackrepo": kind_slackrepo, "publish": kind_publish,
+ "slackrepo": kind_slackrepo, "publish": kind_publish, "rebuild-tree": kind_rebuild_tree,
**{k: _self_job(k) for k in ("hint-update", "hint-new", "fix-current")}}