summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-05-15 17:57:17 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-05-15 17:57:17 (EDT)
commitf1ae939a22d07a873a5e1e139763baefa2f0581d (patch)
treef0b0c3a603d328db3df5e3f31b9bd2dad1823172
parent7f4e10ef7d07caa9fa263c0ff8ff1f8c73bb20c9 (diff)
ob_match_plat(): Add back plat:all check.
This was removed in commit 34c2432. This might be useful someday. Now both ob_match_plat() and ob_plat_is_concerned() check for this.
-rw-r--r--lib/metadata.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/metadata.sh b/lib/metadata.sh
index 86a8960..c056649 100644
--- a/lib/metadata.sh
+++ b/lib/metadata.sh
@@ -183,6 +183,13 @@ ob_match_plat()
fi
for p in ${plat_field}; do
+ if [ "${plat}" = 'all' ]; then
+ if [ "${p}" = 'all' ]; then
+ return 0
+ else
+ continue
+ fi
+ fi
if [ "${p}" = 'any' ]; then
return 0
fi