From 14959e04bdf69d1ae97d70234cf411021dee0a0f Mon Sep 17 00:00:00 2001 From: rallytime Date: Wed, 11 Jul 2018 11:11:58 -0400 Subject: [PATCH] Remove support for openSUSE Leap 42.2 Leap 42.2 is EOL and has been replaced by 42.3 This commit also simplifies some of the logic in checking for suse versions. openSUSE 13.X is no longer supported and hasn't been for some time, so we don't need to worry about checking for those versions any longer. The script will bail out at the `__check_end_of_life_versions` functions early on in the install process. --- README.rst | 2 +- bootstrap-salt.sh | 20 +++++++------------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/README.rst b/README.rst index 0ae82ed..638b3c8 100644 --- a/README.rst +++ b/README.rst @@ -266,7 +266,7 @@ Red Hat family SUSE family ~~~~~~~~~~~ -- openSUSE Leap 42.2/42.3 +- openSUSE Leap 42.3 - openSUSE Tumbleweed 2015 - SUSE Linux Enterprise Server 11 SP4, 12 SP2 diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 8dc6807..c50d89e 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -1526,9 +1526,9 @@ __check_end_of_life_versions() { # openSUSE versions not supported # # <= 13.X - # <= 42.1 - if [ "$DISTRO_MAJOR_VERSION" -le 13 ] || \ - { [ "$DISTRO_MAJOR_VERSION" -eq 42 ] && [ "$DISTRO_MINOR_VERSION" -le 1 ]; }; then + # <= 42.2 + if [ "$DISTRO_MAJOR_VERSION" -lt 15 ] || \ + { [ "$DISTRO_MAJOR_VERSION" -eq 42 ] && [ "$DISTRO_MINOR_VERSION" -le 2 ]; }; then echoerror "End of life distributions are not supported." echoerror "Please consider upgrading to the next stable. See:" echoerror " http://en.opensuse.org/Lifetime" @@ -5473,15 +5473,10 @@ __set_suse_pkg_repo() { # Set distro repo variable if [ "${DISTRO_MAJOR_VERSION}" -gt 2015 ]; then DISTRO_REPO="openSUSE_Tumbleweed" - elif [ "${DISTRO_MAJOR_VERSION}" -ge 42 ]; then + elif [ "${DISTRO_MAJOR_VERSION}" -ge 42 ] || [ "${DISTRO_MAJOR_VERSION}" -eq 15 ]; then DISTRO_REPO="openSUSE_Leap_${DISTRO_MAJOR_VERSION}.${DISTRO_MINOR_VERSION}" - elif [ "${DISTRO_MAJOR_VERSION}" -lt 42 ]; then - case ${DISTRO_MAJOR_VERSION} in - 15) DISTRO_REPO="openSUSE_Leap_${DISTRO_MAJOR_VERSION}.${DISTRO_MINOR_VERSION}" - ;; - *) DISTRO_REPO="SLE_${DISTRO_MAJOR_VERSION}_SP${SUSE_PATCHLEVEL}" - ;; - esac + else + DISTRO_REPO="SLE_${DISTRO_MAJOR_VERSION}_SP${SUSE_PATCHLEVEL}" fi if [ "$_DOWNSTREAM_PKG_REPO" -eq $BS_TRUE ]; then @@ -5688,8 +5683,7 @@ install_opensuse_git_post() { if [ -f /bin/systemctl ]; then use_usr_lib=$BS_FALSE - if [ "${DISTRO_MAJOR_VERSION}" -gt 13 ] || \ - { [ "${DISTRO_MAJOR_VERSION}" -eq 13 ] && [ "${DISTRO_MINOR_VERSION}" -ge 2 ]; }; then + if [ "${DISTRO_MAJOR_VERSION}" -ge 15 ]; then use_usr_lib=$BS_TRUE fi