Blob Blame History Raw
From 89538c7d02542f1f4963b02c8179f29c5548c0fb Mon Sep 17 00:00:00 2001
From: Angelo Naselli <anaselli@linux.it>
Date: Sun, 10 Dec 2017 18:54:50 +0100
Subject: [PATCH] Correctly managed undo operation

---
 python/dnfdaemon/server/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/dnfdaemon/server/__init__.py b/python/dnfdaemon/server/__init__.py
index 87b4bc4..3a5954d 100644
--- a/python/dnfdaemon/server/__init__.py
+++ b/python/dnfdaemon/server/__init__.py
@@ -646,8 +646,8 @@ def history_undo(self, tid):
             try:
                 # FIXME: Base.history_undo_operations is not public api
                 #print(len(history.transaction_nevra_ops(old.tid)))
-                self.base.history_undo_operations(
-                     history.transaction_nevra_ops(old.tid))
+                self.base._history_undo_operations(
+                     history.transaction_nevra_ops(old.tid), old.tid)
                 #print(self.get_transaction())
             except dnf.exceptions.PackagesNotInstalledError as err:
                 result = (False, ['An operation cannot be undone : %s' %