Skip to content

Commit

Permalink
pkg: improve list_deps concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
s243a committed Aug 26, 2019
1 parent 8760d9b commit b5d1483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woof-code/rootfs-packages/PKG/usr/sbin/pkg
Original file line number Diff line number Diff line change
Expand Up @@ -6228,7 +6228,7 @@ list_deps(){ # list all deps of PKG ($1), space separated o
local already_done=`grep -m1 "^${subdep}\$" ${TMPDIR}/DEP_DONE 2>/dev/null`
[ "$already_done" != '' ] && continue
if [ "$HIDE_BUILTINS" = true ]; then
if [ "$HIDE_BUILTINS" = true ] || [ -z "$HIDE_BUILTINS" ]; then
is_builtin=`is_builtin_pkg "$subdep"`
[ "$is_builtin" = true ] && continue
is_in_devx=`is_devx_pkg "$subdep"`
Expand Down Expand Up @@ -6281,7 +6281,7 @@ list_deps(){ # list all deps of PKG ($1), space separated o
[ "$deps" != "" ] && echo "$deps" | sed -e 's/^ //g' | tr ' ' '\n' | sort -u | tr '\n' ' '
# clean up
if [ list_deps_count -eq 0 ]; then
if [ $list_deps_count -eq 1 ]; then
rm "${TMPDIR}/installed_pkg"* 2>/dev/null
fi
rm "${TMPDIR}/missing_dep"* "${TMPDIR}/all_dep"* "${TMPDIR}/DEP_DONE" "/tmp/pkg/list_deps_busy" 2>/dev/null
Expand Down

0 comments on commit b5d1483

Please sign in to comment.