validators++
authorAlec Warner <antarus@gentoo.org>
Tue, 8 May 2007 05:02:36 +0000 (05:02 -0000)
committerAlec Warner <antarus@gentoo.org>
Tue, 8 May 2007 05:02:36 +0000 (05:02 -0000)
svn path=/main/trunk/; revision=6498

pym/portage/env/config.py
pym/portage/env/loaders.py

index 62d3d8177b41b2a042fd46be70df60f25c05ef0c..192d1085293d6980103921fcc60eec90ca83a199 100644 (file)
@@ -38,7 +38,8 @@ class PackageKeywordsFile(UserConfigKlass):
        default_loader = KeyListFileLoader
 
        def __init__(self, filename):
-               super(PackageKeywordsFile,self).__init__(self.default_loader(filename))
+               super(PackageKeywordsFile, self).__init__(
+                       self.default_loader(filename, validator=None))
        
 class PackageUseFile(UserConfigKlass):
        """
@@ -47,7 +48,8 @@ class PackageUseFile(UserConfigKlass):
 
        default_loader = KeyListFileLoader
        def __init__(self, filename):
-               super(PackageUseFile,self).__init__(self.default_loader(filename))
+               super(PackageUseFile, self).__init__(
+                       self.default_loader(filename, validator=None))
        
 class PackageMaskFile(UserConfigKlass):
        """
@@ -64,7 +66,8 @@ class PackageMaskFile(UserConfigKlass):
        default_loader = ItemFileLoader
 
        def __init__(self, filename):
-               super(PackageMaskFile,self).__init__(self.default_loader(filename))
+               super(PackageMaskFile, self).__init__(
+                       self.default_loader(filename, validator=None))
 
 class PortageModulesFile(UserConfigKlass):
        """
@@ -74,4 +77,5 @@ class PortageModulesFile(UserConfigKlass):
        default_loader = KeyValuePairFileLoader
        
        def __init__(self, filename):
-               super(PortageModulesFile,self).__init__(self.default_loader(filename))
+               super(PortageModulesFile, self).__init__(
+                        self.default_loader(filename, validator=None))
index c9fb7473d542a9b7fa231fbc9a1f8d5105fb988e..f670345a527977142c8b99df80eb6645ffb71ef1 100644 (file)
@@ -28,7 +28,7 @@ def RecursiveFileLoader(filename):
        full of files in that directory to process.
        
        Ignore files beginning with . or ending in ~.
-       Prune CVS directories.  
+       Prune CVS directories.
 
        @param filename: name of a file/directory to traverse
        @rtype: list
@@ -81,8 +81,8 @@ class ItemFileLoader(DataLoader):
        
        _recursive = False
 
-       def __init__(self, filename):
-               DataLoader.__init__(self)
+       def __init__(self, filename, validator):
+               DataLoader.__init__(self, validator)
                self.fname = filename
        
        def load(self):
@@ -118,8 +118,8 @@ class KeyListFileLoader(DataLoader):
 
        _recursive = False
 
-       def __init__(self, filename):
-               DataLoader.__init__(self)
+       def __init__(self, filename, validator):
+               DataLoader.__init__(self, validator)
                self.fname = filename
 
        def load(self):
@@ -162,8 +162,8 @@ class KeyValuePairFileLoader(DataLoader):
 
        _recursive = False
 
-       def __init__(self, filename):
-               DataLoader.__init__(self)
+       def __init__(self, filename, validator):
+               DataLoader.__init__(self, validator)
                self.fname = filename
 
        def load(self):