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

Bastian Blank waldi at alioth.debian.org
Thu Jan 31 11:38:38 UTC 2008


Author: waldi
Date: Thu Jan 31 11:38:37 2008
New Revision: 10332

Log:
* bin: New directory.
* bin/dkt-maintainer: Add.


Added:
   people/waldi/dkt/bin/
   people/waldi/dkt/bin/dkt-maintainer   (contents, props changed)

Added: people/waldi/dkt/bin/dkt-maintainer
==============================================================================
--- (empty file)
+++ people/waldi/dkt/bin/dkt-maintainer	Thu Jan 31 11:38:37 2008
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+
+import sys
+
+from dkt.bin.base import MainBase
+
+class MainAll(MainBase):
+    def __init__(self, package):
+        super(MainAll, self).__init__()
+        self.package = package
+
+class MainPreInst(MainAll):
+    def __call__(self):
+        raise NotImplementedError
+
+clss = {
+    'preinst': MainPreInst,
+}
+
+if __name__ == '__main__':
+    name = sys.argv[1]
+    package = sys.argv[2]
+    cls = clss[name]
+    cls(package)()



More information about the Kernel-svn-changes mailing list