Skip to content

Commit

Permalink
Fix environ.get_package_records deprecation warning
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bargull <[email protected]>
  • Loading branch information
mbargull committed Jan 30, 2024
1 parent a93e5b3 commit d7a9751
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions conda_build/environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,8 +850,7 @@ def package_specs(self):
last_index_ts = 0


@deprecated("24.1.0", "24.3.0", addendum="Use `get_package_records` instead.")
def get_install_actions(
def get_package_records(
prefix,
specs,
env,
Expand Down Expand Up @@ -998,10 +997,11 @@ def get_install_actions(
utils.trim_empty_keys(actions)
cached_actions[(specs, env, subdir, channel_urls, disable_pip)] = actions.copy()
last_index_ts = index_ts
return actions
return actions.get(LINK_ACTION, [])


def get_package_records(
@deprecated("24.1.0", "24.3.0", addendum="Use `get_package_records` instead.")
def get_install_actions(
prefix,
specs,
env,
Expand All @@ -1017,7 +1017,7 @@ def get_package_records(
output_folder=None,
channel_urls=None,
):
return get_install_actions(
precs = get_package_records(
prefix=prefix,
specs=specs,
env=env,
Expand All @@ -1032,7 +1032,8 @@ def get_package_records(
max_env_retry=max_env_retry,
output_folder=output_folder,
channel_urls=channel_urls,
).get(LINK_ACTION, [])
)
return {PREFIX_ACTION: prefix, LINK_ACTION: precs}


@deprecated.argument("24.1.0", "24.3.0", "specs_or_actions", rename="specs_or_precs")
Expand Down

0 comments on commit d7a9751

Please sign in to comment.