aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-14 13:12:29 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-14 13:12:29 +0000
commitaa27266222fa1e8267468bdfb47cb2f535fdacdb (patch)
tree7bbbdf0635acb25087380d16c1626763ef6f12bf /kiss
parent768aa73443a5929aff3b7c0685fd6727feb9ac84 (diff)
downloadcpt-aa27266222fa1e8267468bdfb47cb2f535fdacdb.tar.gz
kiss: fix pkg_find exit
FossilOrigin-Name: 28c627d0ed779b44022c512d3d3257f38b4ea6700493c625960beaafdc809bae
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss6
1 files changed, 4 insertions, 2 deletions
diff --git a/kiss b/kiss
index 5adb91b..2f9a34f 100755
--- a/kiss
+++ b/kiss
@@ -174,6 +174,8 @@ pkg_extract() {
pkg_depends() {
# Resolve all dependencies and install them in the right order.
+ repo_dir=$(pkg_find "$1")
+
# This does a depth-first search. The deepest dependencies are
# listed first and then the parents in reverse order.
contains "$deps" "$1" || {
@@ -181,7 +183,7 @@ pkg_depends() {
# packages. Keep doing this.
while read -r dep _; do
[ "${dep##\#*}" ] && pkg_depends "$dep"
- done 2>/dev/null < "$(pkg_find "$1")/depends" ||:
+ done 2>/dev/null < "$repo_dir/depends" ||:
# After child dependencies are added to the list,
# add the package which depends on them.
@@ -908,7 +910,7 @@ args() {
for pkg; do
case $pkg in
*.tar.gz) deps="$deps $pkg " ;;
- *) pkg_depends "$pkg" 2>/dev/null
+ *) pkg_depends "$pkg"
esac
done