curl keeps a global parser state. This means that if there are multiple "cacert =" values they are just overriden and the last one wins. This is why the `test_curl_download_many_mixed_certs` test did not work - the second `cacert = ` overwrites the previous one. To fix this we need to use `--next` when we need to change options on a per url (like `cacert`) basis. With `--next` curl starts a new parser state for the next url (but keeps the options for the previous ones set). This commit does that in a slightly naive way by just repeating our options for each url. Technically we could sort the sources so that we have less repetition but other then slightly smaller auto-generated files it has no advantage. With this commit the `test_curl_download_many_mixed_certs` test works. |
||
|---|---|---|
| .. | ||
| test | ||
| org.osbuild.containers-storage | ||
| org.osbuild.curl | ||
| org.osbuild.inline | ||
| org.osbuild.ostree | ||
| org.osbuild.skopeo | ||
| org.osbuild.skopeo-index | ||