Skip to content

Commit

Permalink
make true copy of repodata
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth committed Sep 21, 2023
1 parent e081f37 commit 1837997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_index/index/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def _get_resolve_object(subdir, precs=None, repodata=None):
sd = SubdirData(channel)

# repodata = copy.deepcopy(repodata) # slower than json.dumps/load loop
repodata_copy = repodata.copy()
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()
Expand Down Expand Up @@ -1105,7 +1105,7 @@ def build_run_exports_data(self, subdir, verbose=False, progress=False):
# load cached packages
for row in cache.db.execute(
"""
SELECT path, run_exports FROM stat
SELECT path, run_exports FROM stat
LEFT JOIN run_exports USING (path)
WHERE stat.stage = ?
ORDER BY path
Expand Down

0 comments on commit 1837997

Please sign in to comment.