summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-03-14 02:38:20 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-03-14 02:38:20 (EDT)
commit8d6c533cc1bfbdc20c09f07320a1ce6ce1290d65 (patch)
tree9cc96d2d47668a460bc5bac0689a6c53bcd25aab /src
parent6cd30d42a462786d3d7c014a766a5c366982d83a (diff)
Fix expected format of "Build-Depends" field.
Diffstat (limited to 'src')
-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