Fix distributions testing packages support check.

This commit is contained in:
Pedro Algarvio 2013-08-04 17:10:36 +01:00
parent 0fb7b737bc
commit 095e6e0361

View file

@ -882,7 +882,7 @@ fi
# Only RedHat based distros have testing support
if [ ${ITYPE} = "testing" ]; then
if [ "$(echo ${DISTRO_NAME_L} | egrep 'centos|red_hat|amazon')x" != "x" ]; then
if [ "$(echo ${DISTRO_NAME_L} | egrep '(centos|red_hat|amazon)')x" = "x" ]; then
echoerror "${DISTRO_NAME} does not have testing packages support"
exit 1
fi