debian-forge/sources
Michael Vogt 16667ef260 sources(curl): error if curl exists 0 but there are downloads left
As part of the investigation of the CI failure in
https://github.com/osbuild/osbuild-composer/pull/4247
we noticed that curl can return a return_code of `0` even
when it did not downloaded all the urls in a `--config` provided
file. This seems to be curl version dependent, I had a hard
time writing a test-case with the real curl (8.6.0) that
reproduces this so I went with mocking it. We definietly saw
this failure with the centos 9 version (7.76).

Our current code is buggy and assumes that the exit status
of curl is always non-zero if any download fails but that is
only the case when `--fail-early` is used.

The extra paranoia will not hurt even when relying on the
exit code of curl is fixed.
2024-07-17 11:39:35 +02:00
..
test sources(curl): error if curl exists 0 but there are downloads left 2024-07-17 11:39:35 +02:00
org.osbuild.containers-storage sources: transform() is only used in the curl sources, remove from ABC 2024-03-19 14:21:57 +01:00
org.osbuild.curl sources(curl): error if curl exists 0 but there are downloads left 2024-07-17 11:39:35 +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