From dc8f07c7ffce03423a46fba62f9d76120ab31b19 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Fri, 6 Dec 2024 02:47:55 +0300 Subject: [PATCH] Fix logic and tests --- plugins/python-build/bin/python-build | 4 ++-- plugins/python-build/test/build.bats | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index a48f514e..b7a0698e 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1703,9 +1703,9 @@ use_homebrew_tcltk() { # once fixed, it should be removed. # if tcltk_ops_flag is in PYTHON_CONFIGURE_OPTS, use user provided tcltk use_custom_tcltk() { - local tcl_tk_ops="$(get_tcltk_flag_from "$PYTHON_CONFIGURE_OPTS")" + local tcltk_ops="$(get_tcltk_flag_from "$PYTHON_CONFIGURE_OPTS")" - if [[ -z "$tcl_tk_ops" ]]; then + if [[ -z "$tcltk_ops" ]]; then return 1 fi local tcltk_ops_flag="--with-tcltk-libs=" diff --git a/plugins/python-build/test/build.bats b/plugins/python-build/test/build.bats index 271c274a..c6984898 100644 --- a/plugins/python-build/test/build.bats +++ b/plugins/python-build/test/build.bats @@ -739,7 +739,7 @@ OUT for i in {1..10}; do stub uname '-s : echo Darwin'; done for i in {1..2}; do stub sw_vers '-productVersion : echo 1010'; done - for i in {1..5}; do stub brew false; done + for i in {1..6}; do stub brew false; done stub_make_install run_inline_definition <