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

Verify SourceConfig and RepoConfig define at least one URL #3760

Open
achilleas-k opened this issue Oct 25, 2023 · 0 comments
Open

Verify SourceConfig and RepoConfig define at least one URL #3760

achilleas-k opened this issue Oct 25, 2023 · 0 comments

Comments

@achilleas-k
Copy link
Member

The following check happens when both creating a SourceConfig and a RepoConfig. Specifying none of the three should result in an error, since it makes for an unusable repository configuration.

if s.Type == "yum-baseurl" {
repo.BaseURLs = urls
} else if s.Type == "yum-metalink" {
repo.Metalink = s.URL
} else if s.Type == "yum-mirrorlist" {
repo.MirrorList = s.URL
}

See also osbuild/osbuild#1411

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

No branches or pull requests

1 participant