emaint cleanconfmem: fix writedict breakage v2.2.0_alpha124
authorZac Medico <zmedico@gentoo.org>
Sun, 2 Sep 2012 23:46:54 +0000 (16:46 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Sep 2012 23:46:54 +0000 (16:46 -0700)
Use grabdict so the values are stored as lists like writedict expects.

pym/portage/emaint/modules/config/config.py

index f20068cda651aa1603bbf456a73b976ec946459b..dad024b218f07090f9acb3ab278c3cd3cd910ca8 100644 (file)
@@ -4,7 +4,7 @@
 import portage
 from portage import os
 from portage.const import PRIVATE_PATH
-from portage.util import writedict
+from portage.util import grabdict, writedict
 
 class CleanConfig(object):
 
@@ -19,14 +19,7 @@ class CleanConfig(object):
        name = staticmethod(name)
 
        def load_configlist(self):
-               
-               configs = {}
-               with open(self.target, 'r') as configfile:
-                       lines = configfile.readlines()
-               for line in lines:
-                       ls = line.split()
-                       configs[ls[0]] = ls[1]
-               return configs
+               return grabdict(self.target)
 
        def check(self,  **kwargs):
                onProgress = kwargs.get('onProgress', None)