aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-26 10:03:08 +0200
committerDanilo M. <danix@danix.xyz>2026-09-26 10:03:08 +0200
commit83b30e4076356e7a2a104e7f67f727c792699107 (patch)
tree5a198620a5995da48843e526e2ca29dfc2f1bfe6 /AGENTS.md
parent2addd8bd31e146e91cc2489840da7b4ae1325eed (diff)
downloaddist-upgrade-83b30e4076356e7a2a104e7f67f727c792699107.tar.gz
dist-upgrade-83b30e4076356e7a2a104e7f67f727c792699107.zip
Handle slackpkg exit 20 and 50, auto-restart on self-upgrade
slackpkg's cleanup() exits 20 when no packages match (benign, e.g. an install-new with nothing to do) and 50 when it upgraded itself and wants the operation restarted. Treating every nonzero as fatal aborted the run on the very common 20. Add handle_rc(): 0 and 20 continue, real errors abort with the exit code, and 50 re-execs the script once with the original arguments, guarded by DIST_UPGRADE_RESTARTS so a repeated 50 aborts instead of looping. All steps now go through it.
Diffstat (limited to 'AGENTS.md')
0 files changed, 0 insertions, 0 deletions