From 85d78aa5f1add67c54440af8fa9be188606c2591 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 14 Mar 2019 23:40:54 -0400 Subject: ob_match_*(): Make private These functions are only ever called by ob_*_is_concerned() and are not very useful outside that context. --- (limited to 'lib') diff --git a/lib/metadata.sh b/lib/metadata.sh index dcae248..9249f87 100644 --- a/lib/metadata.sh +++ b/lib/metadata.sh @@ -158,7 +158,7 @@ ob_get_system_plat() return 0 } -ob_match_arch() +_ob_match_arch() { local match_arch="${1}" local arch_field="${2}" @@ -200,7 +200,7 @@ ob_match_arch() return 1 } -ob_match_plat() +_ob_match_plat() { local match_plat="${1}" local plat_field="${2}" @@ -241,14 +241,14 @@ ob_arch_is_concerned() for arch in ${arches}; do not_arch="${arch#!}" if [ x"${not_arch}" != x"${arch}" ]; then - if ob_match_arch "${host_arch}" "${not_arch}" + if _ob_match_arch "${host_arch}" "${not_arch}" then seen_arch=1 break else seen_arch=0 fi - elif ob_match_arch "${host_arch}" "${arch}"; then + elif _ob_match_arch "${host_arch}" "${arch}"; then seen_arch=0 break fi @@ -279,14 +279,14 @@ ob_plat_is_concerned() for plat in ${plats}; do not_plat="${plat#!}" if [ x"${not_plat}" != x"${plat}" ]; then - if ob_match_plat "${host_plat}" "${not_plat}" + if _ob_match_plat "${host_plat}" "${not_plat}" then seen_plat=1 break else seen_plat=0 fi - elif ob_match_plat "${host_plat}" "${plat}"; then + elif _ob_match_plat "${host_plat}" "${plat}"; then seen_plat=0 break fi -- cgit v0.9.1