Author: waldi
Date: Sat Mar  8 21:30:16 2008
New Revision: 10750

Log:
* bin/dkt-maintainer: Update.
* lib/dkt/bin/base.py: Add method to delete bootconfig.


Modified:
   people/waldi/dkt/bin/dkt-maintainer
   people/waldi/dkt/lib/dkt/bin/base.py

Modified: people/waldi/dkt/bin/dkt-maintainer
==============================================================================
--- people/waldi/dkt/bin/dkt-maintainer (original)
+++ people/waldi/dkt/bin/dkt-maintainer Sat Mar  8 21:30:16 2008
@@ -97,10 +97,7 @@
         self.run_systemtask()
         self.run_imagetask('prerm', self.imageconfig, (self.command,) + 
self.args)
         self.bootconfig_generate()
-        for i in self.bootconfig:
-            if i.config.package == self.package:
-                self.bootconfig.remove(i)
-                break
+        self.bootconfig_delete(self.package)
         self.bootconfig_deploy()
 
 class MainImagePostRm(MainAllPostRm):

Modified: people/waldi/dkt/lib/dkt/bin/base.py
==============================================================================
--- people/waldi/dkt/lib/dkt/bin/base.py        (original)
+++ people/waldi/dkt/lib/dkt/bin/base.py        Sat Mar  8 21:30:16 2008
@@ -22,6 +22,12 @@
             self.imageconfigs.read_dir(dir)
         default_registry.run(IImageConfig, 'image_config', self.imageconfigs, 
self.config)
 
+    def bootconfig_delete(self, package):
+        for i in self.bootconfig:
+            for c in i.configs:
+                if IImageBaseConfig(c).package == self.package:
+                    self.bootconfig.remove(i)
+
     def bootconfig_deploy(self):
         # XXX
         ret = default_registry.run(IBootConfigDeploy, 'boot_config_deploy', 
self.bootconfig, self.config)

_______________________________________________
Kernel-svn-changes mailing list
Kernel-svn-changes@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/kernel-svn-changes

Reply via email to