From f7cf445d57d448117bbfbb18f97a511897c397bc Mon Sep 17 00:00:00 2001 From: jaimergp Date: Wed, 18 Oct 2023 18:06:45 +0200 Subject: [PATCH] Fallback to solved record filename to find the downloaded tarball in `get_upstream_pins` (#5037) Fallback to input package filename if not found in the index; it should be equivalent anyway. --- conda_build/render.py | 2 +- news/5037-conda-libmamba-solver-pins | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 news/5037-conda-libmamba-solver-pins diff --git a/conda_build/render.py b/conda_build/render.py index 881898dc9d..fa428e07f6 100644 --- a/conda_build/render.py +++ b/conda_build/render.py @@ -384,7 +384,7 @@ def execute_download_actions(m, actions, env, package_subset=None, require_files with utils.LoggingContext(): pfe.execute() for pkg_dir in pkgs_dirs: - _loc = os.path.join(pkg_dir, index[pkg].fn) + _loc = os.path.join(pkg_dir, index.get(pkg, pkg).fn) if os.path.isfile(_loc): pkg_loc = _loc break diff --git a/news/5037-conda-libmamba-solver-pins b/news/5037-conda-libmamba-solver-pins new file mode 100644 index 0000000000..d4044fac0f --- /dev/null +++ b/news/5037-conda-libmamba-solver-pins @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* Fallback to solved record filename to find the downloaded tarball in `get_upstream_pins`. (#4991 via #5037) + +### Deprecations + +* + +### Docs + +* + +### Other + +*