strip "src/" from target names early enough
authorTimo Savola <tsavola@movial.fi>
Fri, 8 Aug 2008 08:41:32 +0000 (11:41 +0300)
committerTimo Savola <tsavola@movial.fi>
Fri, 8 Aug 2008 08:41:32 +0000 (11:41 +0300)
matrix/matrix.py

index 6869879..a6b3147 100644 (file)
@@ -36,17 +36,14 @@ def main():
        for name in options:
                merge_config(name, options[name])
 
-       cache.init()
-       components.init(targets)
-
        for i in xrange(len(targets)):
                name = targets[i]
                if name.startswith('src' + os.path.sep):
                        name = name.split(os.path.sep)[1]
                        targets[i] = name
 
-               if name not in components.by_name:
-                       raise Error('Component "%s" does not exist' % name)
+       cache.init()
+       components.init(targets)
 
        if not targets:
                targets = components.by_name.keys()