From 2deb58b8d16c92cb75e3c6b611491121d574cee4 Mon Sep 17 00:00:00 2001 From: Petr L Date: Tue, 5 Mar 2024 12:29:47 +0300 Subject: [PATCH] Fix empty error window --- dnfdragora/ui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dnfdragora/ui.py b/dnfdragora/ui.py index 0a95b33..62fc9a2 100644 --- a/dnfdragora/ui.py +++ b/dnfdragora/ui.py @@ -1993,6 +1993,8 @@ def _OnBuildTransaction(self, info): self._status = DNFDragoraStatus.RUN_TRANSACTION else: err = "".join(resolve) if isinstance(resolve, list) else resolve if isinstance(resolve, list) else repr(resolve); + if not err: + err = _('The list of packages cannot be installed:') + '\n' + '\n'.join(self.options['install']) dialogs.infoMsgBox({'title' : _('Build Transaction error',), 'text' : err.replace("\n", "
"), 'richtext' : True }) logger.warning("Transaction Cancelled: %s", repr(resolve)) self._enableAction(True)