dnfparse: add support for dnf repos for overrides#478
Draft
lzap wants to merge 1 commit intoosbuild:mainfrom
Draft
dnfparse: add support for dnf repos for overrides#478lzap wants to merge 1 commit intoosbuild:mainfrom
lzap wants to merge 1 commit intoosbuild:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is just a rough idea, today I was testing how repo override for Satellite works, one needs to create a JSON file and pass it. But on a registered system (to Satellite), there is already a repo file that contains everything, so I thought it would be nice to allow passing it directly:
I created a tiny repofile parser that reads the format and detection - when the
--force-repois a local file (not directory), then it tries to parse it and uses the information to build the override. This generates a manifest:{ ... "sha256:ff7914961b7976be1d3444d5315a6e5fcf9cdbb45d4903ff72fb306739612ce0": { "path": "Packages/l/libblkid-2.40.2-15.el10_1.x86_64.rpm", "mirror": "091140efa994c49267d7a3107b5e97036b2dec07b6bcc71b738b078f1ea30a54" } }, "options": { "mirrors": { "091140efa994c49267d7a3107b5e97036b2dec07b6bcc71b738b078f1ea30a54": { "url": "https://katello.routed.lan/pulp/content/Default_Organization/Library/content/dist/rhel10/$releasever/x86_64/baseos/os", "type": "baseurl", "secrets": { "name": "org.osbuild.mtls" } }, "cddaec356806ced85d76d87435ca6457443fc53d97d3acbef5f142517f89a252": { "url": "https://katello.routed.lan/pulp/content/Default_Organization/Library/content/dist/rhel10/$releasever/x86_64/appstream/os", "type": "baseurl", "secrets": { "name": "org.osbuild.mtls" } } } } } } }However, I am getting an error when trying to build this. Not sure why, something is missing not sure what that is: