aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-07-24 10:56:05 +0000
committermerakor <cem@ckyln.com>2020-07-24 10:56:05 +0000
commitc36e4a2ecc9d0ae7b8e387879d367ae70a0d3be6 (patch)
tree791c1c56ea54783231f26162db003ddd1f3cfdf5
parent7306a264b889fd6145a201a5cd6a731d80d40a78 (diff)
downloadcpt-c36e4a2ecc9d0ae7b8e387879d367ae70a0d3be6.tar.gz
cpt-install: actually install
FossilOrigin-Name: 1239434abbe36a3c6fdec96f29cff7d6a3fb9036f33d57e4db06fb6f10be51b7
-rwxr-xr-xtools/cpt-install16
1 files changed, 15 insertions, 1 deletions
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"