Skip to content

Commit

Permalink
Fix python bindings hanging on fetching repodata
Browse files Browse the repository at this point in the history
  • Loading branch information
tl-hbk committed Dec 12, 2024
1 parent d26d974 commit 5c6198a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py-rattler/src/networking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ pub fn py_fetch_repo_data<'a>(
.into_iter()
.map(|(cache, chan)| {
let path = cache_path.to_string_lossy().into_owned();
PySparseRepoData::new(chan, path, cache.repo_data_json_path)
let repo_data_json_path = cache.repo_data_json_path.clone();
drop(cache);
PySparseRepoData::new(chan, path, repo_data_json_path)
})
.collect::<Result<Vec<_>, _>>(),
Err(e) => Err(PyRattlerError::from(e).into()),
Expand Down

0 comments on commit 5c6198a

Please sign in to comment.