Return True after yummain runs.

Capture the errcode returned, but don't do anything for now.  It's
probably likely that yummain will always fail according to it
because our instroot won't have everything in place that scriplets
need to run.  But scriptlets are supposed to always exit with
success, so I dunno.
This commit is contained in:
David Cantrell 2008-10-04 21:38:20 -10:00
parent 6bac20bb66
commit e39a759cf1
1 changed files with 4 additions and 1 deletions

View File

@ -122,4 +122,7 @@ def installPackages(yumconf=None, destdir=None, packages=None):
arglist.append("--installroot=%s" % (destdir,))
arglist += ['install', '-y'] + packages
return yummain.user_main(arglist, exit_code=False)
# XXX: sort through yum errcodes and return False for actual bad things
# we care about
errcode = yummain.user_main(arglist, exit_code=False)
return True