]> git.ipfire.org Git - pakfire.git/commitdiff
Remove change action which is equivalent to reinstall action.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Oct 2011 22:23:20 +0000 (00:23 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Oct 2011 22:23:20 +0000 (00:23 +0200)
python/pakfire/actions.py
python/pakfire/transaction.py
python/src/step.c

index ba757891596e54cb5a9ff1e40afd5d9c69dd3e38..72b0aa35b519138973fcb89474e2337a570b5c20 100644 (file)
@@ -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"
 
index 048154454104b645450a0c7ca2cce4f076a2c91f..069105b0965e3583474c09e53d56f996236fe48c 100644 (file)
@@ -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):
index 50ceb488b1ffed83f6224df6b5e78fadb9a8fa4c..50e5ec060fb28d3fba6b89cd04c83792b9e762a0 100644 (file)
@@ -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: