Skip to content

Commit

Permalink
fix(fedora): update lang packages
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbertoli committed Oct 27, 2019
1 parent ae48f01 commit 311a304
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions scripts/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ case ${OS} in
yum -y update && yum -y install ${PY_PKGS}
;;
fedora)
F_PKGS="${COMMON_PKGS} openssh-server openssh-clients which findutils"
F_PKGS="${COMMON_PKGS} openssh-server openssh-clients which findutils glibc-langpack-en"

if [ "${PY_VER}" = "3" ]; then
F_PKGS="${F_PKGS} python3-pip"
Expand All @@ -82,24 +82,14 @@ case ${OS} in
dnf -y update && dnf -y install ${F_PKGS}
;;
opensuse*)
O_PKGS="${COMMON_PKGS} glibc-locale net-tools openssh which"
O_PKGS="${COMMON_PKGS} glibc-locale net-tools openssh which net-tools-deprecated python-xml"

if [ "${PY_VER}" = "3" ]; then
O_PKGS="${O_PKGS} python3-pip"
else
O_PKGS="${O_PKGS} python-pip"
fi

if [ "${OS_VER}" = "15" ]; then
O_PKGS="${O_PKGS} net-tools-deprecated python-xml"

# Edit zypper repos (see https://github.com/netmanagers/salt-image-builder/issues/4)
cd /etc/zypp/repos.d/
ls | while read F; do
sed -i "s#download.opensuse.org#mirror.23media.com/opensuse#g" "${F}"
done
fi

# https://github.com/inspec/train/issues/377
# https://github.com/inspec/train/pull/505
if [ ! -e /etc/SuSE-release ]; then
Expand Down

0 comments on commit 311a304

Please sign in to comment.