debian-forge/sources
Michael Vogt a50dbb14c2 sources(curl): use --next for each url in curl config
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.
2024-08-28 07:46:37 +02:00
..
test sources(curl): use --next for each url in curl config 2024-08-28 07:46:37 +02:00
org.osbuild.containers-storage sources/containers-storage: fix load caching 2024-08-22 19:47:28 +02:00
org.osbuild.curl sources(curl): use --next for each url in curl config 2024-08-28 07:46:37 +02:00
org.osbuild.inline sources: transform() is only used in the curl sources, remove from ABC 2024-03-19 14:21:57 +01:00
org.osbuild.ostree sources: transform() is only used in the curl sources, remove from ABC 2024-03-19 14:21:57 +01:00
org.osbuild.skopeo sources: transform() is only used in the curl sources, remove from ABC 2024-03-19 14:21:57 +01:00
org.osbuild.skopeo-index sources: transform() is only used in the curl sources, remove from ABC 2024-03-19 14:21:57 +01:00