From 69fe724f76ee8ad62b8dfdaca36837b9ddb0b579 Mon Sep 17 00:00:00 2001 From: Marcel Bargull Date: Sat, 16 Mar 2024 09:29:08 +0100 Subject: [PATCH] Port conda-build=24.1.2 clean_pkg_cache change ref: - https://github.com/conda/conda-build/pull/5184 Signed-off-by: Marcel Bargull --- boa/core/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boa/core/test.py b/boa/core/test.py index b7039df..7fed584 100644 --- a/boa/core/test.py +++ b/boa/core/test.py @@ -710,7 +710,10 @@ def run_test( not hasattr(recipedir_or_package_or_metadata, "config") and os.path.isfile(recipedir_or_package_or_metadata) and recipedir_or_package_or_metadata.endswith(CONDA_PACKAGE_EXTENSIONS) - and os.path.dirname(recipedir_or_package_or_metadata) in pkgs_dirs[0] + and any( + os.path.dirname(recipedir_or_package_or_metadata) in pkgs_dir + for pkgs_dir in pkgs_dirs + ) ) if not in_pkg_cache: clean_pkg_cache(metadata.dist(), metadata.config)