summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/deps.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/deps.sh b/src/deps.sh
index 25c2cf7..72a0cda 100644
--- a/src/deps.sh
+++ b/src/deps.sh
@@ -28,7 +28,7 @@ resolve_deps()
local pkg=
all_deps=''
- new_pkgs="${new_pkgs} "
+ new_pkgs=" $(printf '%s ' ${new_pkgs})"
while [ "x${new_pkgs}" != 'x' ]; do
all_deps="${all_deps}${new_pkgs}"
new_deps=''
@@ -42,7 +42,7 @@ resolve_deps()
new_deps="$(printf '%s\n' ${new_deps} | sort -u)"
new_pkgs=''
for pkg in ${new_deps}; do
- if [ "x${all_deps# ${pkg} }" = "x${all_deps}" ]; then
+ if [ "x${all_deps#* ${pkg} }" = "x${all_deps}" ]; then
new_pkgs="${new_pkgs}${pkg} "
fi
done