From 8d6c533cc1bfbdc20c09f07320a1ce6ce1290d65 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 14 Mar 2012 02:38:20 -0400 Subject: Fix expected format of "Build-Depends" field. --- (limited to 'src') 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 -- cgit v0.9.1