When installing rpm, only None means install rpm successfully,
so raise exception if not
Fixes: #1564
Change-Id: I09bbb39f68eff72a4769e9732c5ab505cdef8313
# ts.run() exit codes are, hmm, "creative": None means all ok, empty
# list means some errors happened in the transaction and non-empty
# list that there were errors preventing the ts from starting...
- if errs is None:
- pass
- elif len(errs) == 0:
- msger.warning("Warning: scriptlet or other non-fatal errors occurred")
- else:
+ if errs is not None:
raise errors.BootstrapError("Transaction couldn't start: %s" % '\n'.join(errs))
def run_pkg_script(self, pkg, prog, script, arg):