kiss: fix depends function when run from install/remove

This commit is contained in:
Dylan Araps 2019-09-15 12:22:11 +03:00
parent fe7cc39026
commit bd4a28073b
1 changed files with 2 additions and 1 deletions

3
kiss
View File

@ -180,7 +180,8 @@ pkg_depends() {
# listed first and then the parents in reverse order.
contains "$deps" "$1" || {
# Filter out non-explicit, aleady installed dependencies.
[ -z "$2" ] && (pkg_list "$1" >/dev/null) && return
[ -z "${action##b*}" ] && [ -z "$2" ] &&
(pkg_list "$1" >/dev/null) && return
# Recurse through the dependencies of the child
# packages. Keep doing this.