Split package update/install commands

Currently when the package cache update fails, the package install
doesn't run resulting in a hidden failure.

This ensures that the cache update failure is more obvious and
that if it fails the package install will still be tried regardless.

Change-Id: I0adefa505e78cd24ebabc7a99acd14de99d1934e
This commit is contained in:
Jesse Pretorius 2016-08-10 15:43:38 -05:00 committed by Kevin Carter (cloudnull)
parent ab3a192411
commit e18c636f5c

View File

@ -49,15 +49,16 @@ determine_distro
# Install the base packages
case ${DISTRO_ID} in
centos|rhel)
yum check-update && yum -y install git python2 curl autoconf gcc-c++ \
yum check-update
yum -y install git python2 curl autoconf gcc-c++ \
python2-devel gcc libffi-devel openssl-devel python-requests \
python-pyasn1 pyOpenSSL python-ndg_httpsclient \
python-netaddr python-prettytable python-crypto PyYAML \
python-virtualenv
;;
ubuntu)
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install \
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y install \
git python-all python-dev curl python2.7-dev build-essential \
libssl-dev libffi-dev python-requests python-openssl python-pyasn1 \
python-netaddr python-prettytable python-crypto python-yaml \