Auto merged
authorChris Larson <clarson@kergoth.com>
Mon, 12 Apr 2004 22:07:31 +0000 (22:07 +0000)
committerChris Larson <clarson@kergoth.com>
Mon, 12 Apr 2004 22:07:31 +0000 (22:07 +0000)
bin/oe/parse/ConfHandler.py

index 1b2fdff..19c5eb3 100644 (file)
@@ -86,8 +86,13 @@ def handle(fn, data = {}, include = 0):
        else:
                inc_string = "reading"
        init(data)
+
        if include == 0:
                oe.data.inheritFromOS(data)
+               oldfile = None
+       else:
+               oldfile = oe.data.getVar('FILE', data)
+
        fn = obtain(fn, data)
        oepath = ['.']
        if not os.path.isabs(fn):
@@ -121,6 +126,9 @@ def handle(fn, data = {}, include = 0):
                        lineno = lineno + 1
                        s = s[:-1] + s2
                feeder(lineno, s, fn, data)
+
+       if oldfile:
+               oe.data.setVar('FILE', oldfile, data)
        return data
 
 def feeder(lineno, s, fn, data = {}):