]> git.ipfire.org Git - pakfire.git/commitdiff
Introduce stub for change action.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Jun 2011 22:55:08 +0000 (00:55 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Jun 2011 22:55:08 +0000 (00:55 +0200)
pakfire/repository/transaction.py

index 5235d66a5e21dcbc245a5913b3be270c50564511..7efbb690eccf6a26f201c73cac48d11cf906607e 100644 (file)
@@ -133,6 +133,13 @@ class ActionDowngrade(ActionInstall):
        type = "downgrade"
 
 
+class ActionChange(Action):
+       type = "change"
+
+       def run(self):
+               print "XXX Change: %s" % self.pkg
+
+
 class Transaction(object):
        action_classes = [
                ActionInstall,
@@ -141,6 +148,7 @@ class Transaction(object):
                ActionCleanup,
                ActionReinstall,
                ActionDowngrade,
+               ActionChange,
        ]
 
        def __init__(self, pakfire):