feat(bootstrap-salt): handle openSUSE downstream repo change for 15.4

The difference between `15.3` and `15.4` can be seen here:

* https://download.opensuse.org/repositories/systemsmanagement:/saltstack/
  - `openSUSE_Leap_15.3`
  - `15.4` (i.e. not `openSUSE_Leap_15.4`)
This commit is contained in:
Imran Iqbal 2022-06-17 13:17:21 +01:00
parent ba1ee56907
commit b903662ad0
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819

View file

@ -6463,6 +6463,8 @@ __set_suse_pkg_repo() {
# Set distro repo variable
if [ "${DISTRO_MAJOR_VERSION}" -gt 2015 ]; then
DISTRO_REPO="openSUSE_Tumbleweed"
elif [ "${DISTRO_MAJOR_VERSION}" -eq 15 ] && [ "${DISTRO_MINOR_VERSION}" -ge 4 ]; then
DISTRO_REPO="${DISTRO_MAJOR_VERSION}.${DISTRO_MINOR_VERSION}"
elif [ "${DISTRO_MAJOR_VERSION}" -ge 42 ] || [ "${DISTRO_MAJOR_VERSION}" -eq 15 ]; then
DISTRO_REPO="openSUSE_Leap_${DISTRO_MAJOR_VERSION}.${DISTRO_MINOR_VERSION}"
else