From 088a61c64c29acb17ea9a097d644418f90635496 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 05 Jul 2020 23:01:13 -0400 Subject: _ob_parse_package_metadata_2(): Validate section On ob_get_binary_packages()'s first run, binary package control files haven't yet been parsed. --- (limited to 'lib/package.sh') diff --git a/lib/package.sh b/lib/package.sh index 772fdc0..8ed6645 100644 --- a/lib/package.sh +++ b/lib/package.sh @@ -93,7 +93,6 @@ ob_get_binary_packages() local host_plat= local pkg= local pkgs_clean= - local sect= local pkg_clean= local pkgs= @@ -121,16 +120,11 @@ ob_get_binary_packages() for pkg in ${_ob_binary_packages}; do - # Validate the name and section. + # Validate the name. 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' | \ -- cgit v0.9.1