debian-forge-composer/cmd
Tomas Hozza fba9fe1072 Make the Distroregistry FromHost() return distro with correct name
Composer does not have 1:1 mapping of what can be the Host Distro name
and the names of supported distributions held in the Distroregistry.

The fact that the host distro `Name()` method as passed to the Weldr API
does not return the same name as what is used as distro name for
repository definitions. This makes it hard to use `distro.Distro` and
`distro.Arch` directly and rely on the values returned by them as their
name.

Add `New*HostDistro()` to all distro definitions, accepting the name
that should be returned by the distro's `Name()` method. This is useful
mainly if the host distro is Beta or Stream variant of the distro.

Change the distroregistry.Registry to contain host distro as a separate
value set when creating it using `New()` function. This value is
returned by `Registry.FromHost()` method. Determining the host distro is
handled by the `NewDefault()` function. Move the distro name mangling to
distroregistry package. Add relevant unit tests.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-05-14 15:43:00 +02:00
..
cloud-cleaner GCP: accept context from the caller in all methods 2021-04-01 20:12:39 +02:00
osbuild-auth-tests test/auth: rework the test to use the new openssl setup 2020-11-05 13:48:48 +01:00
osbuild-composer Make the Distroregistry FromHost() return distro with correct name 2021-05-14 15:43:00 +02:00
osbuild-composer-cli-tests test/cli: add a sanity check for Weldr logs 2021-03-19 18:50:31 +01:00
osbuild-dnf-json-tests distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
osbuild-image-tests osbuild-image-tests: call osbuild with export option 2021-03-17 18:12:17 +00:00
osbuild-koji upload/koji: don't pass task_id to cg_init_build 2020-09-16 00:15:02 +01:00
osbuild-koji-tests test/koji: move the koji test to schutzbot 2020-11-02 19:59:28 +01:00
osbuild-pipeline osbuild-pipeline: add ostree.ref image option 2021-03-17 18:12:17 +00:00
osbuild-store-dump osbuild-store-dump: Use bp1 with iot image type 2021-03-30 00:19:30 +01:00
osbuild-upload-aws upload/aws: fix architecture for aarch64 images 2020-12-01 08:27:44 +01:00
osbuild-upload-azure cmd/upload-azure: set storage account 2021-03-06 15:40:48 +00:00
osbuild-upload-gcp Rename all occurrences of "Compute Node" to "Compute Engine" 2021-04-01 20:12:39 +02:00
osbuild-worker Rename all occurrences of "Compute Node" to "Compute Engine" 2021-04-01 20:12:39 +02:00