1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-24 16:10:05 -07:00

kiss: Simplify removal arg stuff

This commit is contained in:
Dylan Araps 2020-05-19 12:38:54 +03:00
parent f5c2777787
commit b1d54112dd
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

8
kiss
View File

@ -1097,7 +1097,7 @@ pkg_remove() {
pkg_list "$1" >/dev/null || return
# Make sure that nothing depends on this package.
[ "$2" = check ] && {
[ "$KISS_FORCE" ] || {
log "$1" "Checking for reverse dependencies"
(cd "$sys_db"; set +f; grep -lFx "$1" -- */depends) &&
@ -1545,16 +1545,12 @@ args() {
i|install)
pkg_order "$@"
for pkg in $order; do pkg_install "$pkg"; done
;;
r|remove)
pkg_order "$@"
for pkg in $redro; do
pkg_remove "$pkg" "${KISS_FORCE:-check}"
done
for pkg in $redro; do pkg_remove "$pkg"; done
;;
b|build) pkg_build "${@:?No packages installed}" ;;