cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 2801c5c1f7e9c175ee13e735999c0ed7a397250b
parent c6d714b1283df9e000af38c2df1a58f0bd0e1b80
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 24 Jul 2020 13:56:06 +0300

cpt-install: actually install

Diffstat:
Mtools/cpt-install | 16+++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)

diff --git 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"