Allow passing 'dirs' in, in exec_func. needed by the rootfs population .oe
authorChris Larson <clarson@kergoth.com>
Wed, 9 Jul 2003 17:58:32 +0000 (17:58 +0000)
committerChris Larson <clarson@kergoth.com>
Wed, 9 Jul 2003 17:58:32 +0000 (17:58 +0000)
bin/oe/build.py

index 51f8ac5..9ed3c5f 100644 (file)
@@ -73,10 +73,11 @@ def init(data):
        _task_stack = []
 
 
-def exec_func(func, d):
+def exec_func(func, d, dirs = None):
        """Execute an OE 'function'"""
 
-       dirs = data.getVarFlag(func, 'dirs', d) or []
+       if not dirs:
+               dirs = data.getVarFlag(func, 'dirs', d) or []
        for adir in dirs:
                adir = data.expand(adir, d)
                mkdirhier(adir)