From be69467c2caefddc1f04d5be71d36f6b8d9c13d3 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 21 Oct 2026 10:32:55 +0200 Subject: 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 --- remote/sbb-remote | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'remote') 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")}} -- cgit v1.2.3