diff --git a/functions-common b/functions-common index cb2998bfcd..d7d8299ad0 100644 --- a/functions-common +++ b/functions-common @@ -1300,13 +1300,17 @@ function yum_install { BEGIN { fail=0 } /No package/ { fail=1 } { print } - END { exit fail }' || \ - die $LINENO "Missing packages detected" + END { exit fail }' + result=$? - # also ensure we catch a yum failure - if [[ ${PIPESTATUS[0]} != 0 ]]; then - die $LINENO "${YUM:-yum} install failure" + if [ $result != 0 ]; then + echo $LINENO "Missing packages detected" + elif [[ ${PIPESTATUS[0]} != 0 ]]; then + # also ensure we catch a yum failure + echo $LINENO "${YUM:-yum} install failure" + result=1 fi + return $result } # zypper wrapper to set arguments correctly