internal/distro: make it possible to use rhsm with fedora
It should be possible to use rhsm with fedora repos as well.
This commit is contained in:
parent
1ada606ed8
commit
ac51c5087f
1 changed files with 5 additions and 0 deletions
|
|
@ -281,6 +281,11 @@ func sources(packages []rpmmd.PackageSpec) *osbuild.Sources {
|
|||
fileSource := osbuild.FileSource{
|
||||
URL: pkg.RemoteLocation,
|
||||
}
|
||||
if pkg.Secrets == "org.osbuild.rhsm" {
|
||||
fileSource.Secrets = &osbuild.Secret{
|
||||
Name: "org.osbuild.rhsm",
|
||||
}
|
||||
}
|
||||
files.URLs[pkg.Checksum] = fileSource
|
||||
}
|
||||
return &osbuild.Sources{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue