From 5e37d4b9e4d46ac1ccb6c2b8ea9630c3ac7b7e03 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 05 Jul 2020 23:27:17 -0400 Subject: _ob_parse_package_metadata_2(): Validate sections only if present --- 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 -- cgit v0.9.1