ltmpl: continue loop if installpkg can't find something
Otherwise, something like: installpkg missing-thingy kernel kernel-firmware will leave you without a kernel.
This commit is contained in:
parent
318c843e37
commit
262a05e539
@ -382,7 +382,11 @@ class LoraxTemplateRunner(object):
|
|||||||
until the 'run_pkg_transaction' command is given.
|
until the 'run_pkg_transaction' command is given.
|
||||||
'''
|
'''
|
||||||
for p in pkgs:
|
for p in pkgs:
|
||||||
self.yum.install(pattern=p)
|
try:
|
||||||
|
self.yum.install(pattern=p)
|
||||||
|
except Exception as e:
|
||||||
|
# TODO: save exception and re-raise after the loop finishes
|
||||||
|
logger.warn("installpkg %s failed: %s",p,str(e))
|
||||||
|
|
||||||
def removepkg(self, *pkgs):
|
def removepkg(self, *pkgs):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user