First check for non empty string

This commit is contained in:
Pedro Algarvio 2020-02-04 12:15:47 +00:00
parent e970777d5f
commit b219dc62fb
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -5334,7 +5334,7 @@ _eof
# Package python-ordereddict-1.1-2.el6.noarch is obsoleted by python26-2.6.9-2.88.amzn1.x86_64
# which is already installed
if [ "${PY_PKG_VER}" -eq 3 ]; then
if [ -n "${PY_PKG_VER}" ] && [ "${PY_PKG_VER}" -eq 3 ]; then
__PACKAGES="${pkg_append}${PY_PKG_VER}-m2crypto ${pkg_append}${PY_PKG_VER}-pyyaml"
else
__PACKAGES="m2crypto PyYAML ${pkg_append}-futures"