From 1ad678cfd041d2d481faf15094360c5ebc0fe59b Mon Sep 17 00:00:00 2001 From: Mathieu Le Marec - Pasquet Date: Mon, 3 Mar 2025 21:39:40 +0200 Subject: [PATCH] fix install fixer --- bin/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/install.sh b/bin/install.sh index e67fb03a..924cfcad 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -1330,6 +1330,10 @@ reinstall_egg_path() { try_fix_ansible() { bs_log "Try to fix ansible tree" local COPS_PYTHON=${COPS_PYTHON:-$(get_cops_python)} + if ! ( $COPS_PYTHON -m pip --version );then + log "Trying to install missing dependencies(fix)" + install_prerequisites || die "install prereqs(fix) failed" + fi if ( noisy_test_ansible_state 2>&1| grep -iq pkg_resources.DistributionNotFound ) && [ -e "$(get_eggs_src_dir)/ansible/.git" ] && \ ( $COPS_PYTHON -m pip --version >/dev/null 2>&1 );then