diff --git a/dnf/base.py b/dnf/base.py index c1affc8cba..be0aba9a5e 100644 --- a/dnf/base.py +++ b/dnf/base.py @@ -991,6 +991,8 @@ def do_transaction(self, display=()): logger.info(_('Transaction check succeeded.')) + self._plugins.run_pre_transaction_test() + timer = dnf.logging.Timer('transaction test') logger.info(_('Running transaction test')) diff --git a/dnf/plugin.py b/dnf/plugin.py index 6ab71c2b30..3de5e8d0ab 100644 --- a/dnf/plugin.py +++ b/dnf/plugin.py @@ -89,6 +89,10 @@ def pre_transaction(self): # :api pass + def pre_transaction_test(self): + # :api + pass + def transaction(self): # :api pass @@ -161,6 +165,9 @@ def run_sack(self): def run_resolved(self): self._caller('resolved') + def run_pre_transaction_test(self): + self._caller('pre_transaction_test') + def run_pre_transaction(self): self._caller('pre_transaction')