From cd3164000911493c16f4aed21e392694fd103b78 Mon Sep 17 00:00:00 2001 From: Pedro Fonini Date: Tue, 20 May 2025 19:06:11 -0300 Subject: [PATCH] Also revert `if ! configured_with_package_dir` --- plugins/python-build/bin/python-build | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 751b8fb7..749fa641 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1586,13 +1586,12 @@ has_broken_mac_readline() { # Mac OS X 10.4 has broken readline. # https://github.com/pyenv/pyenv/issues/23 is_mac || return 1 - if ! configured_with_package_dir "python" "readline/rlconf.h"; then - if can_use_homebrew; then - use_homebrew_readline && return 1 - fi - if can_use_macports; then - use_macports_readline && return 1 - fi + ! configured_with_package_dir "python" "readline/rlconf.h" || return 1 + if can_use_homebrew; then + use_homebrew_readline && return 1 + fi + if can_use_macports; then + use_macports_readline && return 1 fi }