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

Packagesystem cleanup #540

Merged
merged 5 commits into from
Oct 1, 2023
Merged

Conversation

cgwalters
Copy link
Member

Refactor rpm bits into packagesystem module

Prep for cleaning this up and making it more generic
to support non-rpm systems in a pluggable way.


De-duplicate package querying

There's no reason to have two separate functions here.


packagesystem: Add a unit test

On general principle.


Prep for cleaning this up and making it more generic
to support non-rpm systems in a pluggable way.
There's no reason to have two separate functions here.
On general principle.
It doesn't make sense to hardcode the file list inside the query
function; just have the caller pass it the files it needs.

Now the packagesystem module is independent of the content.
Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

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

lgtm

@jmarrero jmarrero merged commit 6d46360 into coreos:main Oct 1, 2023
8 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.

None yet

2 participants