aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-14 07:21:50 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-14 07:21:50 +0000
commita5353304c2ac2a9ea32594328011af8aca5cceb4 (patch)
tree48de88c258a76e81720c1bee3044ebed2c86ade6 /kiss
parent54068f991fc5f055f15a7d214a0ce5c75e10a5df (diff)
downloadcpt-a5353304c2ac2a9ea32594328011af8aca5cceb4.tar.gz
kiss: clean up
FossilOrigin-Name: 76ef6c5fb46986df4a6d25fe859216be3802bd188f117c13b12634c5d12b50db
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss11
1 files changed, 4 insertions, 7 deletions
diff --git a/kiss b/kiss
index 1d514f5..ddd57d9 100755
--- a/kiss
+++ b/kiss
@@ -175,18 +175,15 @@ 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" || {
# Recurse through the dependencies of the child
# packages. Keep doing this.
- [ -f "$repo_dir/depends" ] &&
- while read -r dep _; do
- [ "${dep##\#*}" ] || continue
- pkg_depends "$dep" ||:
- done < "$repo_dir/depends"
+ while read -r dep _; do
+ [ "${dep##\#*}" ] || continue
+ pkg_depends "$dep" ||:
+ done 2>/dev/null < "$(pkg_find "$1")/depends" ||:
# After child dependencies are added to the list,
# add the package which depends on them.