Merge "Avoid to install a blank list of packages"

This commit is contained in:
Jenkins 2014-07-30 01:59:45 +00:00 committed by Gerrit Code Review
commit 280513194e

View File

@ -80,7 +80,10 @@ if [ -n "$WHITELIST" ]; then
else else
PKGS=$(map-packages $WHITELIST) PKGS=$(map-packages $WHITELIST)
fi fi
echo "Installing $PKGS" if [ -z "${PKGS}" ]; then
echo "Not running install-packages $ACTION with empty packages list"
else
echo "Running install-packages ${ACTION}. Package list: $PKGS"
yum -y $ACTION $EXTRA_ARGS $PKGS yum -y $ACTION $EXTRA_ARGS $PKGS
for pkg in "$@"; do for pkg in "$@"; do
if [ "$pkg" = "python-pip" ] ; then if [ "$pkg" = "python-pip" ] ; then
@ -88,3 +91,4 @@ if [ -n "$WHITELIST" ]; then
fi fi
done done
fi fi
fi