summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/metadata.sh30
1 files changed, 30 insertions, 0 deletions
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