From 5d853f87ce0e6197c7ba929b5e05ca86e0397f18 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 29 Sep 2012 15:24:31 -0400 Subject: Implement ob_get_system_{arch,plat}(). --- diff --git a/lib/metadata.sh b/lib/metadata.sh index 1ed700f..266e13a 100644 --- a/lib/metadata.sh +++ b/lib/metadata.sh @@ -109,6 +109,36 @@ ob_parse_version() return ${?} } +ob_get_system_arch() +{ + _ob_local + + if [ ${?} -gt 0 ]; then + _ob_return 125 + return ${?} + fi + + _ob_metadata_do 'get_system_arch' + + _ob_return ${?} + return ${?} +} + +ob_get_system_plat() +{ + _ob_local + + if [ ${?} -gt 0 ]; then + _ob_return 125 + return ${?} + fi + + _ob_metadata_do 'get_system_plat' + + _ob_return ${?} + return ${?} +} + _ob_metadata_do() { _ob_local _obmd_func -- cgit v0.9.1