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.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/oh-checkbuilddeps.sh b/src/oh-checkbuilddeps.sh
index 1f68728..fac59dd 100644
--- a/src/oh-checkbuilddeps.sh
+++ b/src/oh-checkbuilddeps.sh
@@ -20,6 +20,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. @@LIBDIR@@/opkhelper/controlfields
+. @@LIBDIR@@/opkhelper/messages
print_usage()
{
@@ -59,7 +60,7 @@ if [ ${#} -ne 0 ]; then
exit 1
fi
-printf 'oh-checkbuilddeps: Checking build dependencies...\n'
+oh_info 'Checking build dependencies...'
IFS=','
for dep in $(oh_get_field Build-Depends); do
@@ -80,9 +81,7 @@ for dep in $(oh_get_field Build-Depends); do
# TODO: Test this.
if [ -z "$(opkg status "${dep}" | grep "^Package: ${dep}")" ]; then
- printf 'oh-checkbuilddeps: Error: Dependency %s not installed.\n' \
- "${dep}" >&2
- exit 1
+ oh_error 'Dependency %s not installed' "${dep}"
fi
done