cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 6b1c5d427f9baf74f833e12bfb6a5ac86699c8cf
parent 9d01dfc3ae3bcc868fb904b9e3ea836f7304fea8
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sat, 14 Sep 2019 10:21:51 +0300

kiss: clean up

Diffstat:
Mkiss | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git 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.