Skip to content

Commit

Permalink
move the linux-devel.x86_64 package back to install section. remove t…
Browse files Browse the repository at this point in the history
…he upgrade function.
  • Loading branch information
garethgreenaway committed Aug 10, 2023
1 parent 2773893 commit dbf439a
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions bootstrap-salt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2204,16 +2204,6 @@ __tdnf_install_noinput() {
tdnf -y install "${@}" || return $?
} # ---------- end of function __tdnf_install_noinput ----------

#
#--- FUNCTION -------------------------------------------------------------------------------------------------------
# NAME: __tdnf_upgrade_noinput
# DESCRIPTION: (DRY) tdnf upgrade with noinput options
#----------------------------------------------------------------------------------------------------------------------
__tdnf_upgrade_noinput() {

tdnf -y upgrade "${@}" || return $?
} # ---------- end of function __tdnf_upgrade_noinput ----------

#--- FUNCTION -------------------------------------------------------------------------------------------------------
# NAME: __git_clone_and_checkout
# DESCRIPTION: (DRY) Helper function to clone and checkout salt to a
Expand Down Expand Up @@ -7044,13 +7034,9 @@ install_photon_git_deps() {
"${__python}" -m pip install "${dep}" || return 1
done
else
__PACKAGES="python${PY_PKG_VER}-devel python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc glibc-devel"
__PACKAGES="python${PY_PKG_VER}-devel python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc glibc-devel linux-devel.x86_64"
# shellcheck disable=SC2086
__tdnf_install_noinput ${__PACKAGES} || return 1

__PACKAGES="linux-devel.x86_64"
# shellcheck disable=SC2086
__tdnf_upgrade_noinput ${__PACKAGES} || return 1
fi

if [ "${DISTRO_MAJOR_VERSION}" -gt 3 ]; then
Expand Down

0 comments on commit dbf439a

Please sign in to comment.