Skip to content

Commit

Permalink
Ensure prefix passed to PrefixData is str
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Oct 18, 2023
1 parent 0a52fd0 commit 1754e97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conda_build/inspect_pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def which_package(
from conda.core.prefix_data import PrefixData

prefix = Path(prefix)
for prec in PrefixData(prefix).iter_records():
for prec in PrefixData(str(prefix)).iter_records():
for file in prec["files"]:
# historically, path was relative to prefix just to be safe we append to prefix
# (pathlib correctly handles this even if path is absolute)
Expand Down
2 changes: 1 addition & 1 deletion conda_build/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2168,7 +2168,7 @@ def linked_data_no_multichannels(
prefix = Path(prefix)
return {
Dist.from_string(prec.fn, channel_override=prec.channel.name): prec
for prec in PrefixData(prefix)._prefix_records.values()
for prec in PrefixData(str(prefix)).iter_records()
}


Expand Down

0 comments on commit 1754e97

Please sign in to comment.