Use dot-notation for repo configs and in test cases.

Where applicable, modify all repo config filenames to use a dot
to separate the release major and minor version. Modify test cases
to not remove dot from the distro version any more.

Existing tests will be extended (or new tests added) to explicitly test
backward compatibility and ensure that using old distro names without a
dot still works.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-01-12 13:15:31 +01:00 committed by Achilleas Koutsou
parent c82c0ae6b5
commit 66571784d1
33 changed files with 150 additions and 27 deletions

View file

@ -4,4 +4,4 @@
source /etc/os-release
ARCH=$(uname -m)
DISTRO_CODE="${DISTRO_CODE:-${ID}-${VERSION_ID//./}}"
DISTRO_CODE="${DISTRO_CODE:-${ID}-${VERSION_ID}}"