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:
committed by
Kevin Carter (cloudnull)
parent
ab3a192411
commit
e18c636f5c
@@ -49,15 +49,16 @@ determine_distro
|
|||||||
# Install the base packages
|
# Install the base packages
|
||||||
case ${DISTRO_ID} in
|
case ${DISTRO_ID} in
|
||||||
centos|rhel)
|
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 \
|
python2-devel gcc libffi-devel openssl-devel python-requests \
|
||||||
python-pyasn1 pyOpenSSL python-ndg_httpsclient \
|
python-pyasn1 pyOpenSSL python-ndg_httpsclient \
|
||||||
python-netaddr python-prettytable python-crypto PyYAML \
|
python-netaddr python-prettytable python-crypto PyYAML \
|
||||||
python-virtualenv
|
python-virtualenv
|
||||||
;;
|
;;
|
||||||
ubuntu)
|
ubuntu)
|
||||||
apt-get update && \
|
apt-get update
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -y install \
|
DEBIAN_FRONTEND=noninteractive apt-get -y install \
|
||||||
git python-all python-dev curl python2.7-dev build-essential \
|
git python-all python-dev curl python2.7-dev build-essential \
|
||||||
libssl-dev libffi-dev python-requests python-openssl python-pyasn1 \
|
libssl-dev libffi-dev python-requests python-openssl python-pyasn1 \
|
||||||
python-netaddr python-prettytable python-crypto python-yaml \
|
python-netaddr python-prettytable python-crypto python-yaml \
|
||||||
|
|||||||
Reference in New Issue
Block a user