Skip to content

Commit

Permalink
Reloading daemon if transaction fails
Browse files Browse the repository at this point in the history
  • Loading branch information
anaselli committed Nov 17, 2024
1 parent b926d56 commit 30fa34b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dnfdragora/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,13 @@ def _OnBuildTransaction(self, info):
err = "".join(errors) if isinstance(errors, list) else errors if type(errors) is str else repr(errors);
dialogs.infoMsgBox({'title' : _('Build Transaction error',), 'text' : err.replace("\n", "<br>"), 'richtext' : True })
logger.warning("Transaction Cancelled: %s", repr(errors))
self._enableAction(True)

# TODO Transaction has errors we should clean it up reload all by now
self.backend.reloadDaemon()
self.backend.clear_cache(also_groups=True)
self.packageQueue.clear()
self._status = DNFDragoraStatus.STARTUP
self._enableAction(False)
return
# If status is RUN_TRANSACTION we have already confirmed our transaction into BuildTransaction
# and we are here most probably for a GPG key confirmed during last transaction
Expand Down

0 comments on commit 30fa34b

Please sign in to comment.