Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement package filtering as a repo method #429

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

ammernico
Copy link
Member

  • Moved the package filtering logic from download and verify functions into a new search_packages method in the Repository struct.
  • Updated download and verify functions to use the new search_packages method.

This refactor improves code reuse and readability by centralizing the package filtering logic.

Fixes #428
We already fixed this for the download function in 76a3cde. The package filtering for the verifying function was implemented in the same way but didn't fail yet.

- Moved the package filtering logic from `download` and `verify`
  functions into a new `search_packages` method in the `Repository`
  struct.
- Updated `download` and `verify` functions to use the new
  `search_packages` method.

This refactor improves code reuse and readability by centralizing the
package filtering logic.

Fixes science-computing#428
We already fixed this for the download function in 76a3cde.
The package filtering for the verifying function was implemented in the
same way but didn't fail yet.

Signed-off-by: Nico Steinle <[email protected]>
@ammernico ammernico added the prerelease PRs which are merged to staging branch but not in main/master label Oct 16, 2024
Copy link
Member

@primeos-work primeos-work left a comment

Choose a reason for hiding this comment

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

LGTM and the source verify command now fails properly if no matches are found :)

@primeos-work primeos-work added this pull request to the merge queue Nov 5, 2024
Merged via the queue into science-computing:master with commit 371e831 Nov 5, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prerelease PRs which are merged to staging branch but not in main/master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

butido source verify does not error on nonexisting packages
2 participants