fixed bug in yum update code, however another odd bug seems to persist.
occasionally, yum check-update with exit with error code 0, but print an error and sometimes it will exit with error =/= 0 and print no errors.