diff options
author | P. J. McDermott <pjm@nac.net> | 2012-04-24 19:33:27 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-04-24 19:33:27 (EDT) |
commit | 63fa875896f8fc883580062180636c9f3b780330 (patch) | |
tree | 28e2a9729931298a284ce7d0444bdfb15da1bb1a /src/oh-checkbuilddeps.sh | |
parent | 4eba11e4d7a7bf9852a5b24cb7630d6d78da257b (diff) |
Make oh-* tools consistently use message library.
Diffstat (limited to 'src/oh-checkbuilddeps.sh')
-rw-r--r-- | src/oh-checkbuilddeps.sh | 7 |
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 |