From 373195959374244c9d87fe80991a2a52a424fef6 Mon Sep 17 00:00:00 2001 From: Daniel Holth Date: Thu, 21 Sep 2023 17:52:11 -0400 Subject: [PATCH] remove "simulated" deepcopy --- conda_index/index/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/conda_index/index/__init__.py b/conda_index/index/__init__.py index d0d00f8..1afbb97 100644 --- a/conda_index/index/__init__.py +++ b/conda_index/index/__init__.py @@ -345,10 +345,7 @@ def _get_resolve_object(subdir, precs=None, repodata=None): # repodata = copy.deepcopy(repodata) # slower than json.dumps/load loop repodata_copy = json.loads(json.dumps(repodata)) - for group in ("packages", "packages.conda"): - repodata_copy[group] = { - key: value.copy() for key, value in repodata.get(group, {}).items() - } + # adds url, Channel objects to each repodata package sd._process_raw_repodata(repodata_copy)