From d7051d71d8f553097f094aa6d486a2cee034e35a Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 25 Dec 2011 00:16:42 +0000 Subject: Support PYTHON_RESTRICTED_ABIS in PYTHON_ABIS check. --- python-updater | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/python-updater b/python-updater index 600b327..8520e8c 100755 --- a/python-updater +++ b/python-updater @@ -744,21 +744,20 @@ for contents_file in $(find ${PKG_DBDIR}/ -name CONTENTS | sort); do if [[ CHECK_PYTHON_ABIS -ne 0 ]]; then if [[ -n "${PYTHON_MULTIPLE_ABIS}" || -n "${SUPPORT_PYTHON_ABIS}" ]]; then new_PYTHON_ABIS="" - RESTRICT_PYTHON_ABIS="$(get_ebuild_variable "${CATEGORY}" "${PN}" "${SLOT}" "${RESTRICT_PYTHON_ABIS}")" + PYTHON_RESTRICTED_ABIS="$(get_ebuild_variable "${CATEGORY}" "${PN}" "${SLOT}" PYTHON_RESTRICTED_ABIS)" + RESTRICT_PYTHON_ABIS="$(get_ebuild_variable "${CATEGORY}" "${PN}" "${SLOT}" RESTRICT_PYTHON_ABIS)" + if [[ -z "${PYTHON_RESTRICTED_ABIS}" && -n "${RESTRICT_PYTHON_ABIS}" ]]; then + PYTHON_RESTRICTED_ABIS="${RESTRICT_PYTHON_ABIS}" + fi USE_PYTHON="$(get_USE_PYTHON "${CATEGORY}" "${PN}" "${SLOT}")" for PYTHON_ABI in ${USE_PYTHON}; do - support_ABI="1" - for restricted_ABI in ${RESTRICT_PYTHON_ABIS}; do - if check_python_abi_matching "${PYTHON_ABI}" "${restricted_ABI}"; then - support_ABI="0" - break - fi - done - [[ "${support_ABI}" == "1" ]] && new_PYTHON_ABIS+="${new_PYTHON_ABIS:+ }${PYTHON_ABI}" + if ! check_python_abi_matching --patterns-list "${PYTHON_ABI}" "${PYTHON_RESTRICTED_ABIS}"; then + new_PYTHON_ABIS+="${new_PYTHON_ABIS:+ }${PYTHON_ABI}" + fi done eindent && eindent veinfo 3 "Requested ABIs: \"${USE_PYTHON}\"" - veinfo 3 "Restricted ABIs: \"${RESTRICT_PYTHON_ABIS}\"" + veinfo 3 "Restricted ABIs: \"${PYTHON_RESTRICTED_ABIS}\"" veinfo 3 "Previously enabled ABIs: \"${PYTHON_ABIS}\"" veinfo 3 "Newly enabled ABIs: \"${new_PYTHON_ABIS}\"" eoutdent && eoutdent -- cgit v1.2.3-65-gdbad