Skip to content

Conversation

@uilianries
Copy link
Member

@uilianries uilianries commented Aug 27, 2025

When exploring conan-io/examples2#193, the PackagesList.only_recipes method has an empty dict as a result, and it's not filled.

This PR adds value to be returned when using it.

Still, I'm not sure if it's worth keeping that result returned, because the method changes its own self.recipes. Another option would be removing the result only.

Changelog: Omit
Docs: Omit

  • Refer to the issue that supports this Pull Request.
  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.
  • I've opened another PR in the Conan docs repo to the develop branch, documenting this one.

@uilianries uilianries requested a review from memsharded August 27, 2025 08:57
for rrev_dict in ref_dict.get("revisions", {}).values():
rrev_dict.pop("packages", None)
return result
return self.recipes.copy()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is redundant. The current usages of only_recipes in Conan do not use the return value, better to just drop it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped in the commit 7b0f9e3

@memsharded memsharded added this to the 2.20 milestone Aug 27, 2025
@memsharded memsharded merged commit 022caac into conan-io:develop2 Aug 27, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants