Skip to content

Commit

Permalink
Short-circuit get_output_dicts_from_metadata's if clause for faster…
Browse files Browse the repository at this point in the history
… evaluation (#5278)

Signed-off-by: Marcel Bargull <[email protected]>
Co-authored-by: Marcel Bargull <[email protected]>
  • Loading branch information
kenodegard and mbargull authored Apr 17, 2024
1 parent 03c3924 commit 51793ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,8 +889,8 @@ def get_output_dicts_from_metadata(metadata, outputs=None):
outputs.append(OrderedDict(name=metadata.name()))
for out in outputs:
if (
"package:" in metadata.get_recipe_text()
and out.get("name") == metadata.name()
out.get("name") == metadata.name()
and "package:" in metadata.get_recipe_text()
):
combine_top_level_metadata_with_output(metadata, out)
return outputs
Expand Down

0 comments on commit 51793ce

Please sign in to comment.