From 920688ae9f28978198e2b1d6d1adf3b155081fec Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Fri, 20 Sep 2024 08:55:19 +0200 Subject: [PATCH] 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 --- dnf/yum/rpmtrans.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dnf/yum/rpmtrans.py b/dnf/yum/rpmtrans.py index 51fa921d3e..2e03ec9ed1 100644 --- a/dnf/yum/rpmtrans.py +++ b/dnf/yum/rpmtrans.py @@ -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: