aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-15 09:22:10 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-15 09:22:10 +0000
commitc1f40ce4eb2cd58f1561eed1b6bbbea62eccbaa0 (patch)
treed97af1c7da4cf0d7b1d1bf7d61c4b5aec2aad32b
parent9a3ea6c735c0503482569f1bebb5bbf5159fbb8b (diff)
downloadcpt-c1f40ce4eb2cd58f1561eed1b6bbbea62eccbaa0.tar.gz
kiss: fix depends function when run from install/remove
FossilOrigin-Name: 9b46800b027879ab6983757fbd9034e41280f90aad48bfc488e6596fd4420721
-rwxr-xr-xkiss3
1 files changed, 2 insertions, 1 deletions
diff --git a/kiss b/kiss
index 9315c1c..5317af2 100755
--- a/kiss
+++ b/kiss
@@ -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.