Print rpm unpack errors to the user (RhBug:2312906)
DNF currently prints RPM errors that occur during scriptlet execution or during package installation/removal. This patch adds error handling for issues that arise during RPM package unpacking as well. = changelog = msg: Print rpm package unpack errors to the user type: enhancement resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2312906
This commit is contained in:
parent
f519e602a7
commit
920688ae9f
|
@ -397,6 +397,8 @@ class RPMTransaction(object):
|
|||
display.error(msg)
|
||||
|
||||
def _unpackError(self, key):
|
||||
self._scriptout()
|
||||
|
||||
transaction_list = self._extract_cbkey(key)
|
||||
msg = "Error unpacking rpm package %s" % transaction_list[0].pkg
|
||||
for display in self.displays:
|
||||
|
|
Loading…
Reference in New Issue