sibling add: run update first on a system not upgraded for a day
shellcheck / shellcheck (push) Successful in 19s

A sibling's install.sh installs packages from pacman's package lists. On a
system not upgraded for a week or so, those name versions the mirrors have
deleted, so the install fails with 404s: HamPack's smoketest found this,
adding HamPack to a ten-day-old install. Only update may upgrade the
system, so sibling add now runs it first when pacman's log says the last
full upgrade is over a day old (or doesn't say). Not when update or
install.sh is running it, and a failing update doesn't stop the add.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 13:15:03 -07:00
co-authored by Claude Opus 5.5
parent 4f1e18200c
commit 259f9063e8
3 changed files with 107 additions and 1 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ A sibling project is another git repository that builds on CoreDesktop. To insta
sibling
```
It asks for the repository's git URL, clones it into ~/.local/share/siblings/, runs the project's "install.sh" (if it has one), and confirms the install. After that, every "update" pulls the latest version of each sibling and runs its "update.sh" (if it has one).
It asks for the repository's git URL, clones it into ~/.local/share/siblings/, runs the project's "install.sh" (if it has one), and confirms the install. If the system hasn't been upgraded in the last day, it runs "update" first: a sibling's install.sh installs packages, and on an out-of-date system the mirrors no longer have the versions pacman would ask for. After that, every "update" pulls the latest version of each sibling and runs its "update.sh" (if it has one).
Use "sibling list" to see what's installed, with each project's version, and "sibling remove {name}" to uninstall one. A project's version is its latest release tag (e.g. v1.4.0), or, if it has none, the date and short hash of its latest commit, like CoreDesktop's own.