summaryrefslogtreecommitdiffstats
path: root/lib/package
diff options
context:
space:
mode:
Diffstat (limited to 'lib/package')
-rw-r--r--lib/package/2.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/package/2.sh b/lib/package/2.sh
index 471425b..6a2b2f9 100644
--- a/lib/package/2.sh
+++ b/lib/package/2.sh
@@ -41,7 +41,7 @@ _ob_parse_package_metadata_2()
"${_OB_BINARY_FIELDS_REQUIRED_2}" \
"${_OB_BINARY_FIELDS_OPTIONAL_2}"
sect="$(ob_get_binary_parameter "${pkg}" 'Section')"
- if ! ob_validate_section "${sect}"; then
+ if [ -n "${sect}" ] && ! ob_validate_section "${sect}"; then
_ob_warn_msg 'bad_section' "${pkg}" "${sect}"
continue
fi