From 55a45dcb781ab3dc6b6182f8be64c6417ba14b91 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 17 Oct 2011 00:23:20 +0200 Subject: [PATCH] Remove change action which is equivalent to reinstall action. --- python/pakfire/actions.py | 7 ------- python/pakfire/transaction.py | 1 - python/src/step.c | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/python/pakfire/actions.py b/python/pakfire/actions.py index ba7578915..72b0aa35b 100644 --- a/python/pakfire/actions.py +++ b/python/pakfire/actions.py @@ -362,13 +362,6 @@ class ActionReinstall(Action): self.pkg.extract(_("Installing"), prefix=self.pakfire.path) -class ActionChange(ActionReinstall): - """ - The change action is like the reinstall action. - """ - type = "change" - - class ActionDowngrade(Action): type = "downgrade" diff --git a/python/pakfire/transaction.py b/python/pakfire/transaction.py index 048154454..069105b09 100644 --- a/python/pakfire/transaction.py +++ b/python/pakfire/transaction.py @@ -157,7 +157,6 @@ class Transaction(object): ActionUpdate.type : [ActionScriptPreUp, ActionUpdate, ActionScriptPostUp, ActionScriptPostTransUp], ActionCleanup.type : [ActionCleanup,], ActionDowngrade.type : [ActionScriptPreUp, ActionDowngrade, ActionScriptPostUp, ActionScriptPostTransUp], - ActionChange.type : [ActionScriptPreIn, ActionChange, ActionScriptPostIn, ActionScriptPostTransIn], } def __init__(self, pakfire): diff --git a/python/src/step.c b/python/src/step.c index 50ceb488b..50e5ec060 100644 --- a/python/src/step.c +++ b/python/src/step.c @@ -79,7 +79,7 @@ PyObject *Step_get_type(StepObject *self, PyObject *args) { const char *type = "unknown"; int trans_type = transaction_type(self->_transaction, self->_id, - SOLVER_TRANSACTION_SHOW_ACTIVE); + SOLVER_TRANSACTION_SHOW_ACTIVE|SOLVER_TRANSACTION_CHANGE_IS_REINSTALL); switch(trans_type) { case SOLVER_TRANSACTION_IGNORE: -- 2.39.5