debian-forge/sources
Thomas Lavocat 1de74ce2c9 sources: generalizing download method
Before, the download method was defined in the inherited class of each
program. With the same kind of workflow redefined every time. This
contribution aims at making the workflow more clear and to generalize
what can be in the SourceService class.

The download worklow is as follow:
Setup -> Filter -> Prepare -> Download

The setup mainly step sets up caches. Where the download data will be
stored in the end.

The filter step is used to discard some of the items to download based
on some criterion. By default, it is used to verify if an item is
already in the cache using the item's checksum.

The Prepare step goes from each element and let the overloading step the
ability to alter each item before downloading it. This is used mainly
for the curl command which for rhel must generate the subscriptions.

Then the download step will call fetch_one for each item. Here the
download can be performed sequentially or in parallel depending on the
number of workers selected.
2022-05-11 04:32:42 -05:00
..
org.osbuild.curl sources: generalizing download method 2022-05-11 04:32:42 -05:00
org.osbuild.inline sources: generalizing download method 2022-05-11 04:32:42 -05:00
org.osbuild.ostree sources: generalizing download method 2022-05-11 04:32:42 -05:00
org.osbuild.skopeo sources: generalizing download method 2022-05-11 04:32:42 -05:00