osbuild2: set the Insecure option for curl sources

When creating the curl source item for a package, set the Insecure
option on the source to the value of the IgnoreSSL field for the
package.
This commit is contained in:
Achilleas Koutsou 2022-06-15 13:56:25 +02:00 committed by Tomáš Hozza
parent 2555910f77
commit 45ba071724

View file

@ -66,6 +66,7 @@ func GenSources(packages []rpmmd.PackageSpec, ostreeCommits []ostree.CommitSourc
Name: "org.osbuild.rhsm",
}
}
item.Insecure = pkg.IgnoreSSL
curl.Items[pkg.Checksum] = item
}
if len(curl.Items) > 0 {