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

Bastian Blank waldi at alioth.debian.org
Wed Apr 23 07:27:54 UTC 2008


Author: waldi
Date: Wed Apr 23 07:27:52 2008
New Revision: 11120

Log:
bin/dkt-maintainer: Add modules specific calls.


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	Wed Apr 23 07:27:52 2008
@@ -106,11 +106,39 @@
         self.run_imagetask('postrm', (self.command,) + self.args)
         raise NotImplementedError
 
+class MainModulesPreInst(MainAllPreInst):
+    def __call__(self):
+        self.run_systemtask()
+        self.run_modulestask('preinst', (self.command,) + self.args)
+        raise NotImplementedError
+
+class MainModulesPostInst(MainAllPostInst):
+    def __call__(self):
+        self.run_systemtask()
+        self.run_modulestask('postinst', (self.command,) + self.args)
+        raise NotImplementedError
+
+class MainModulesPreRm(MainAllPreRm):
+    def __call__(self):
+        self.run_systemtask()
+        self.run_modulestask('prerm', (self.command,) + self.args)
+        raise NotImplementedError
+
+class MainModulesPostRm(MainAllPostRm):
+    def __call__(self):
+        self.run_systemtask()
+        self.run_modulestask('postrm', (self.command,) + self.args)
+        raise NotImplementedError
+
 clss = {
     'image-preinst': MainImagePreInst,
     'image-postinst': MainImagePostInst,
     'image-prerm': MainImagePreRm,
     'image-postrm': MainImagePostRm,
+    'modules-preinst': MainModulesPreInst,
+    'modules-postinst': MainModulesPostInst,
+    'modules-prerm': MainModulesPreRm,
+    'modules-postrm': MainModulesPostRm,
 }
 
 if __name__ == '__main__':



More information about the Kernel-svn-changes mailing list