summaryrefslogtreecommitdiffstats
path: root/src/oh-checkbuilddeps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/oh-checkbuilddeps.sh')
-rw-r--r--src/oh-checkbuilddeps.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/oh-checkbuilddeps.sh b/src/oh-checkbuilddeps.sh
index e44c984..6966d33 100644
--- a/src/oh-checkbuilddeps.sh
+++ b/src/oh-checkbuilddeps.sh
@@ -33,7 +33,10 @@ fi
printf 'oh-checkbuilddeps: Checking build dependencies...\n'
+IFS=','
+
for dep in $(oh_get_field Build-Depends); do
+ dep=$(echo ${dep} | sed 's/^ *\(.*\) *$/\1/')
# TODO: Test this.
if [ -z "$(opkg status "${dep}" | grep "^Package: ${dep}")" ]; then
printf 'oh-checkbuilddeps: Error: Dependency %s not installed.\n' \
@@ -41,3 +44,5 @@ for dep in $(oh_get_field Build-Depends); do
exit 1
fi
done
+
+unset IFS