cpt

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

commit 9c4fe070d48729bb8b59c2014fe82c31c92fa3d0
parent bbce776b6b30804b458e9630ce8dc64a2b87af87
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Tue, 10 Sep 2019 12:35:25 +0300

kiss: cleanup

Diffstat:
Mkiss | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/kiss b/kiss @@ -830,7 +830,7 @@ pkg_updates() { # Compare installed packages to repository packages. [ "$db_ver-$db_rel" != "$re_ver-$re_rel" ] && { printf '%s\n' "$pkg_name $db_ver-$db_rel ==> $re_ver-$re_rel" - outdated="$outdated $pkg_name " + outdated="$outdated$pkg_name " } done @@ -862,16 +862,13 @@ pkg_updates() { return } - # Turn the string of outdated packages into a 'list'. - set -- $outdated - - log "Packages to update: $*" + log "Packages to update: ${outdated% }" # Tell 'pkg_build' to always prompt before build. pkg_update=1 # Build all packages requiring an update. - pkg_build "$@" + pkg_build $outdated log "Updated all packages" }