diskimage-builder/diskimage_builder/elements/cache-url
Ian Wienand 2c4d230d7a
cache-url: Give up on curl install for Redhat platforms
The RedHat platforms vary if they come pre-installed with curl or
curl-minimal.  For example, Fedora 37 container images have curl, and
centos 9-stream and Rocky images have curl-minimal.  If you try and
install curl when curl-minimal is installed, you get an error, and
vice-versa.

Unfortunately package-installs can't really sort this out; we're just
passing a package list to the system package manager.  We don't have a
way to say "the curl OR curl-minimal package is fine".  As this breaks
builds and is such a common dependency that it's already there, let's
just add a note that curl is required and blank out the package-map.

Change-Id: I9ccebe2dbf3a8682dab60c2070c5f78849e01446
2023-01-20 17:29:13 +11:00
..
bin cache-url: turn off -x by default 2022-07-12 17:09:24 +10:00
tests Fix unit tests for elements 2018-11-28 11:04:50 +11:00
__init__.py Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
element-deps cache-url requires curl 2018-07-23 09:56:58 +00:00
package-installs.yaml cache-url requires curl 2018-07-23 09:56:58 +00:00
pkg-map cache-url: Give up on curl install for Redhat platforms 2023-01-20 17:29:13 +11:00
README.rst cache-url: Give up on curl install for Redhat platforms 2023-01-20 17:29:13 +11:00

=========
cache-url
=========

A helper script to download images into a local cache.

**NOTE** : on RedHat platforms, ensure the curl binary is available.
Due to conflicting differences in platform usage of ```curl-minimal``
and ```curl``, the usual package dependency methods do not work for
this package.