Distribution support status was not read when creating only BSP package (#2693)

This commit is contained in:
Igor Pečovnik
2021-03-06 20:29:07 +01:00
committed by GitHub
parent 520f51de97
commit 8827838e8b
2 changed files with 6 additions and 3 deletions

View File

@@ -632,15 +632,15 @@ function distros_options() {
function set_distribution_status() {
local distro_support_desc_filepath="${DISTRIBUTIONS_DESC_DIR}/${RELEASE}/support"
local distro_support_desc_filepath="${SRC}/${DISTRIBUTIONS_DESC_DIR}/${RELEASE}/support"
if [[ ! -f "${distro_support_desc_filepath}" ]]; then
exit_with_error "Distribution ${distribution_name} does not exist"
else
DISTRIBUTION_STATUS="$(cat "${distro_support_desc_filepath}")"
fi
[[ "${DISTRIBUTION_STATUS}" != "supported" ]] && [[ "${EXPERT}" != "yes" ]] && exit_with_error "Armbian ${RELEASE} is unsupported and, therefore, only available to experts (EXPERT=yes)"
}
adding_packages()