summaryrefslogtreecommitdiffstats
path: root/lib/metadata
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-07-05 00:24:21 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-07-05 00:24:51 (EDT)
commitaee0be0d0605d98c411c4c042be70d66503c6215 (patch)
tree8d8eb80415197d1b074990bc0287316463795795 /lib/metadata
parent9540cac3c18c89cb35774ec9c0f02df627d71b3e (diff)
ob_validate_section(): New function
Diffstat (limited to 'lib/metadata')
-rw-r--r--lib/metadata/proteanos.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh
index 66f2ea8..a891e6e 100644
--- a/lib/metadata/proteanos.sh
+++ b/lib/metadata/proteanos.sh
@@ -165,6 +165,21 @@ _ob_get_system_path()
return 0
}
+_ob_validate_section()
+{
+ local section="${1}"
+ shift 1 || _ob_abort
+
+ case "${section}" in
+ boot | dbg | dev | doc | lib | libdev | locale | share | util)
+ return 0
+ ;;
+ *)
+ return 1
+ ;;
+ esac
+}
+
_ob_section_is_coinstallable()
{
local sect="${1}"