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

Remove dnf-json #313

Merged
merged 8 commits into from
Dec 12, 2023
Merged

Remove dnf-json #313

merged 8 commits into from
Dec 12, 2023

Conversation

achilleas-k
Copy link
Member

@achilleas-k achilleas-k commented Dec 12, 2023

Remove the dnf-json script from the repository. Instead, the library will depend on osbuild-depsolve-dnf, an osbuild subpackage, for depsolving.

Add findDepsolveDnf() to the dnfjson package and call it when initialising the solver. This used to be a helper function in some of the cmds and would look for dnf-json in the current directory for running it from sources then fall back to the installed locations. Now that it's no longer part of the repository, it only searches for the installed locations, /usr/libexec for the official Fedora, CentOS, and RHEL paths, and /usr/lib/osbuild for other distros that might not use /usr/libexec.

Remove the dnf-json script from the repository.  Instead, the library
will depend on osbuild-depsolve-dnf, an osbuild subpackage, for
depsolving.
The Makefile is outdated and not very useful in its current form.
Leaving it there is a bit misleading and can make people think there's
something wrong if they try to use it.
This is duplicated from osbuild-composer and isn't used in any tests or
other tooling.
Install osbuild-depsolve-dnf to run unit tests.
Remove the linter check for dnf-json.
Add findDepsolveDnf() to the dnfjson package and call it when
initialising the solver.  This used to be a helper function in some of
the cmds and would look for dnf-json in the current directory for
running it from sources then fall back to the installed locations.  Now
that it's no longer part of the repository, it only searches for the
installed locations, `/usr/libexec` for the official Fedora, CentOS, and
RHEL paths, and `/usr/lib/osbuild` for other distros that might not user
`/usr/libexec`.
Copy link
Contributor

@ochosi ochosi left a comment

Choose a reason for hiding this comment

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

LGTM

@supakeen supakeen added this pull request to the merge queue Dec 12, 2023
Merged via the queue into osbuild:main with commit 9eb95ba Dec 12, 2023
8 checks passed
@achilleas-k achilleas-k changed the title Rm/dnf json Remove dnf-json Dec 12, 2023
@achilleas-k achilleas-k deleted the rm/dnf-json branch December 12, 2023 23:24
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.

3 participants