[kernel] r10603 - people/waldi/dkt/lib/dkt/imageconfig

Bastian Blank waldi at alioth.debian.org
Tue Feb 19 17:37:29 UTC 2008


Author: waldi
Date: Tue Feb 19 17:37:28 2008
New Revision: 10603

Log:
lib/dkt/imageconfig/list.py: Workaround: Make config mutable.


Modified:
   people/waldi/dkt/lib/dkt/imageconfig/list.py

Modified: people/waldi/dkt/lib/dkt/imageconfig/list.py
==============================================================================
--- people/waldi/dkt/lib/dkt/imageconfig/list.py	(original)
+++ people/waldi/dkt/lib/dkt/imageconfig/list.py	Tue Feb 19 17:37:28 2008
@@ -1,6 +1,6 @@
 import os
 
-from dkt.config.file import Config
+from dkt.config.file import MutableConfig
 from dkt.imageconfig.base import ImageBaseConfig
 
 class ImageConfigList(dict):
@@ -16,7 +16,8 @@
                 self.read_file(os.path.join(root, f), f)
 
     def read_file(self, filename, name):
-        config = Config(file(filename))
+        # XXX: Makes the main config mutable
+        config = MutableConfig(file(filename))
         config = ImageBaseConfig._factory(config)
         if config is not None:
             self[name] = config



More information about the Kernel-svn-changes mailing list