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:
Marek Blaha 2024-09-20 08:55:19 +02:00 committed by kolage
parent f519e602a7
commit 920688ae9f
1 changed files with 2 additions and 0 deletions

View File

@ -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: