-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rpmcallback inst start stop #5
base: transaction-item
Are you sure you want to change the base?
Rpmcallback inst start stop #5
Conversation
@@ -1005,7 +1006,7 @@ def _run_transaction(self, cb): | |||
else: | |||
if self._record_history(): | |||
herrors = [ucd(x) for x in errors] | |||
self.history.end(rpmdbv, 2, errors=herrors) | |||
self.history.end(rpmdbv) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe here is a problem. First I would like to move self.history.end(rpmdbv) few lines bellow. Also I believe that in this case it is normal that some elements were not done.
else:
logger.critical(_("Transaction couldn't start:"))
for e in errors:
logger.critical(ucd(e[0])) # should this be 'to_unicoded'?
if self._record_history() and not self._ts.isTsFlagSet(rpm.RPMTRANS_FLAG_TEST):
self.history.end(rpmdbv)
msg = _("Could not run transaction.")
raise dnf.exceptions.Error(msg)
@@ -995,6 +995,7 @@ def _run_transaction(self, cb): | |||
|
|||
errstring = _('Errors occurred during transaction.') | |||
logger.debug(errstring) | |||
self.history.end(rpmdbv) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It results that the transaction will ends twice.
No description provided.