From cad2d26c47b08c1339592c73aee829b33c5ff1c5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me>
Date: Tue, 11 Jun 2024 14:30:48 +0200
Subject: [PATCH] chore : refactor

---
 .gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh
index a73ec40..e621675 100644
--- a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh
+++ b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh
@@ -15,6 +15,7 @@ else
     search_path=$1
     REPO_PATH=$(find $search_path ! -writable -prune -o  -type d           \
                                     -name "$repo"                          \
+                                    -not -path "*${AIDGE_INSTALL//"../"}*" \
                                     -not -path "*/install/*"               \
                                     -not -path "*/.git/*"                  \
                                     -not -path "*/miniconda/*"             \
@@ -25,7 +26,6 @@ else
                                     -not -path "*/INSTALL*"                \
                                     -not -path "*/$repo/$repo/*"           \
                                     -not -path "*/proc/*"                  \
-                                    -not -path "*${AIDGE_INSTALL//"../"}*" \
                                     -print -quit)
     if [[ -z "$REPO_PATH" ]]; then 
       echo "ERROR : dependency $repo not found in search_path \"$search_path\". ABORTING."
-- 
GitLab