From c36e4a2ecc9d0ae7b8e387879d367ae70a0d3be6 Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 24 Jul 2020 10:56:05 +0000 Subject: cpt-install: actually install FossilOrigin-Name: 1239434abbe36a3c6fdec96f29cff7d6a3fb9036f33d57e4db06fb6f10be51b7 --- tools/cpt-install | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tools/cpt-install b/tools/cpt-install index 77c1de0..d74085f 100755 --- a/tools/cpt-install +++ b/tools/cpt-install @@ -31,6 +31,20 @@ done pkg_order "$@" # shellcheck disable=2154 +for pkg in $order; do pkg_install "$pkg"; done + +# After installation is complete, show a list of messages from packages. +log "Retrieving post-installation message queue" +unset msg + for pkg in $order; do - pkg_isbuilt "$pkg" || [ "$nobuild" != 1 ] || pkg_build "$pkg" + [ -f "$sys_db/$pkg/message" ] && { + printf '%s\n%s\n%s\n\n' \ + "=======================================" \ + "$pkg" \ + "=======================================" + cat "$sys_db/$pkg/message" >&2 + msg=1 + } done +[ "$msg" ] || log "No message in queue" -- cgit v1.2.3