Skip to content

Commit

Permalink
Print rpm unpack errors to the user (RhBug:2312906)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
m-blaha authored and jan-kolarik committed Sep 20, 2024
1 parent f519e60 commit 920688a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dnf/yum/rpmtrans.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ def _cpioError(self, key):
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:
Expand Down

0 comments on commit 920688a

Please sign in to comment.