Merge "Avoid to install a blank list of packages"

This commit is contained in:
Jenkins 2014-07-11 15:28:49 +00:00 committed by Gerrit Code Review
commit a595c7c4c7

View File

@ -78,5 +78,9 @@ if [ -n "$WHITELIST" ]; then
else else
PKGS=$(map-packages $WHITELIST) PKGS=$(map-packages $WHITELIST)
fi fi
run_zypper install $EXTRA_ARGS $PKGS if [ -z "${PKGS}" ]; then
echo 'No packages need to be installed'
else
run_zypper install $EXTRA_ARGS $PKGS
fi
fi fi