mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 08:30:05 -07:00
kiss: Simplify removal arg stuff
This commit is contained in:
parent
f5c2777787
commit
b1d54112dd
8
kiss
8
kiss
@ -1097,7 +1097,7 @@ pkg_remove() {
|
|||||||
pkg_list "$1" >/dev/null || return
|
pkg_list "$1" >/dev/null || return
|
||||||
|
|
||||||
# Make sure that nothing depends on this package.
|
# Make sure that nothing depends on this package.
|
||||||
[ "$2" = check ] && {
|
[ "$KISS_FORCE" ] || {
|
||||||
log "$1" "Checking for reverse dependencies"
|
log "$1" "Checking for reverse dependencies"
|
||||||
|
|
||||||
(cd "$sys_db"; set +f; grep -lFx "$1" -- */depends) &&
|
(cd "$sys_db"; set +f; grep -lFx "$1" -- */depends) &&
|
||||||
@ -1545,16 +1545,12 @@ args() {
|
|||||||
|
|
||||||
i|install)
|
i|install)
|
||||||
pkg_order "$@"
|
pkg_order "$@"
|
||||||
|
|
||||||
for pkg in $order; do pkg_install "$pkg"; done
|
for pkg in $order; do pkg_install "$pkg"; done
|
||||||
;;
|
;;
|
||||||
|
|
||||||
r|remove)
|
r|remove)
|
||||||
pkg_order "$@"
|
pkg_order "$@"
|
||||||
|
for pkg in $redro; do pkg_remove "$pkg"; done
|
||||||
for pkg in $redro; do
|
|
||||||
pkg_remove "$pkg" "${KISS_FORCE:-check}"
|
|
||||||
done
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
b|build) pkg_build "${@:?No packages installed}" ;;
|
b|build) pkg_build "${@:?No packages installed}" ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user