[kernel] r11170 - people/waldi/dkt/bin

Bastian Blank waldi at alioth.debian.org
Fri Apr 25 13:25:30 UTC 2008


Author: waldi
Date: Fri Apr 25 13:25:29 2008
New Revision: 11170

Log:
bin/dkt-maintainer: Move common implementation.


Modified:
   people/waldi/dkt/bin/dkt-maintainer

Modified: people/waldi/dkt/bin/dkt-maintainer
==============================================================================
--- people/waldi/dkt/bin/dkt-maintainer	(original)
+++ people/waldi/dkt/bin/dkt-maintainer	Fri Apr 25 13:25:29 2008
@@ -31,6 +31,10 @@
             c['modules'] = {'abi': self.package[14:]}
         return Config(c)
 
+    def run_systemtask(self):
+        if self.command in self.commands_systemtask:
+            super(MainAll, self).run_systemtask(self.type)
+
 class MainAllPreInst(MainAll):
     commands = ('install', 'upgrade', 'abort-upgrade')
     commands_systemtask = ('install', 'upgrade')
@@ -41,10 +45,6 @@
 
         self.itemconfig = self.itemconfig_create()
 
-    def run_systemtask(self):
-        if self.command in self.commands_systemtask:
-            super(MainAllPreInst, self).run_systemtask(self.type)
-
 class MainAllPostInst(MainAll):
     commands = ('configure', 'abort-upgrade', 'abort-remove', 'abort-deconfigure')
     commands_systemtask = ('configure',)
@@ -59,10 +59,6 @@
             sys.stderr.write("Can't find image config for package %s\n" % self.package)
             sys.exit(1)
 
-    def run_systemtask(self):
-        if self.command in self.commands_systemtask:
-            super(MainAllPostInst, self).run_systemtask(self.type)
-
 class MainAllPreRm(MainAll):
     commands = ('remove', 'upgrade', 'deconfigure', 'failed-upgrade')
     commands_systemtask = ('remove', 'upgrade')
@@ -77,10 +73,6 @@
             sys.stderr.write("Can't find image config for package %s\n" % self.package)
             sys.exit(1)
 
-    def run_systemtask(self):
-        if self.command in self.commands_systemtask:
-            super(MainAllPreRm, self).run_systemtask(self.type)
-
 class MainAllPostRm(MainAll):
     commands = ('purge', 'remove', 'upgrade', 'failed-upgrade', 'abort-install', 'abort-upgrade', 'disappear')
     commands_systemtask = ('purge', 'remove')
@@ -91,10 +83,6 @@
 
         self.itemconfig = self.itemconfig_create()
 
-    def run_systemtask(self):
-        if self.command in self.commands_systemtask:
-            super(MainAllPostRm, self).run_systemtask(self.type)
-
 class MainImagePreInst(MainAllPreInst):
     def __call__(self):
         self.run_systemtask()



More information about the Kernel-svn-changes mailing list