summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-14 23:40:54 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-14 23:40:54 (EDT)
commit85d78aa5f1add67c54440af8fa9be188606c2591 (patch)
treee70025531ba0ababacbc178cb019612a6cbab8d6
parentcb875c9d24f7b2ea71190da3ec5522371eb149e6 (diff)
ob_match_*(): Make private
These functions are only ever called by ob_*_is_concerned() and are not very useful outside that context.
-rw-r--r--lib/metadata.sh12
1 files changed, 6 insertions, 6 deletions
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