more than a yum install error can be thrown

This commit is contained in:
Thomas S Hatch 2012-07-05 16:10:25 -06:00
parent b1c83e8115
commit bdffc64e1b

View File

@ -237,7 +237,7 @@ def install(pkgs, refresh=False, repo='', skip_verify=False, **kwargs):
for pkg in pkgs: for pkg in pkgs:
try: try:
yb.install(name=pkg) yb.install(name=pkg)
except yum.Errors.InstallError: except Exception:
log.error('Package {0} failed to install'.format(pkg)) log.error('Package {0} failed to install'.format(pkg))
# Resolve Deps before attempting install. This needs to be improved # Resolve Deps before attempting install. This needs to be improved
# by also tracking any deps that may get upgraded/installed during this # by also tracking any deps that may get upgraded/installed during this