kiss: cleanup

This commit is contained in:
Dylan Araps 2019-09-10 12:35:25 +03:00
parent bbce776b6b
commit 9c4fe070d4

9
kiss
View File

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