summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/package.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/package.sh b/lib/package.sh
index 8ed6645..772fdc0 100644
--- a/lib/package.sh
+++ b/lib/package.sh
@@ -93,6 +93,7 @@ ob_get_binary_packages()
local host_plat=
local pkg=
local pkgs_clean=
+ local sect=
local pkg_clean=
local pkgs=
@@ -120,11 +121,16 @@ ob_get_binary_packages()
for pkg in ${_ob_binary_packages}; do
- # Validate the name.
+ # Validate the name and section.
if ! ob_validate_binary_name "${pkg}"; then
_ob_warn_msg 'bad_binary_name' "${pkg}"
continue
fi
+ sect="$(ob_get_binary_parameter "${pkg}" 'Section')"
+ if ! ob_validate_section "${sect}"; then
+ _ob_warn_msg 'bad_section' "${pkg}" "${sect}"
+ continue
+ fi
# Make sure the "clean" name is unique.
pkg_clean="$(printf '%s' "${pkg}" | tr 'a-z' 'A-Z' | \