From 63fa875896f8fc883580062180636c9f3b780330 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 24 Apr 2012 19:33:27 -0400 Subject: Make oh-* tools consistently use message library. --- (limited to 'src/oh-checkbuilddeps.sh') 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 . . @@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 -- cgit v0.9.1