mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
add logging to yum error
This commit is contained in:
parent
e3ede0ae13
commit
9ad479bf68
@ -5,6 +5,8 @@ import yum
|
||||
import rpm
|
||||
from rpmUtils.arch import getBaseArch
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
Confine this module to yum based systems
|
||||
@ -191,7 +193,7 @@ def install(pkgs, refresh=False):
|
||||
try:
|
||||
yb.install(name=pkg)
|
||||
except yum.Errors.InstallError:
|
||||
pass
|
||||
log.error('Package {0} failed to install'.format(pkg))
|
||||
# Resolve Deps before attempting install. This needs to be improved
|
||||
# by also tracking any deps that may get upgraded/installed during this
|
||||
# process. For now only the version of the package(s) you request be
|
||||
|
Loading…
Reference in New Issue
Block a user