]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake parse/__init_.py: Add missing update_mtime function fixing bitbake shell...
authorRichard Purdie <richard@openedhand.com>
Tue, 16 Sep 2008 19:14:49 +0000 (19:14 +0000)
committerRichard Purdie <richard@openedhand.com>
Tue, 16 Sep 2008 19:14:49 +0000 (19:14 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5196 311d38ba-8fff-0310-9ca6-ca027cbcb966

bitbake/lib/bb/parse/__init__.py
bitbake/lib/bb/parse/parse_py/BBHandler.py
bitbake/lib/bb/parse/parse_py/ConfHandler.py

index 3c9ba8e6da4c9ed0fa2c165b013a64ae43659a09..5dd96c41367f1f1ffc1b172988be3d605a098f59 100644 (file)
@@ -50,6 +50,10 @@ def cached_mtime_noerror(f):
             return 0
     return __mtime_cache[f]
 
+def update_mtime(f):
+    __mtime_cache[f] = os.stat(f)[8]
+    return __mtime_cache[f]
+
 def mark_dependency(d, f):
     if f.startswith('./'):
         f = "%s/%s" % (os.getcwd(), f[2:])
index d7bf6d4f372cfd5de5dfbde71891abb5f93cfd76..cc8bc92e1dbd55d0dfa8953eea4ec2a3cb82b7d8 100644 (file)
@@ -122,8 +122,10 @@ def handle(fn, d, include = 0):
         abs_fn = fn
 
     if ext != ".bbclass":
-        bbpath.insert(0, os.path.dirname(abs_fn))
-        data.setVar('BBPATH', ":".join(bbpath), d)
+        dname = os.path.dirname(abs_fn)
+        if bbpath[0] != dname:
+            bbpath.insert(0, dname)
+            data.setVar('BBPATH', ":".join(bbpath), d)
 
     if include:
         bb.parse.mark_dependency(d, abs_fn)
index e6488bbe1129e7c6084c23a9428c048fb4a24954..f8a49689e2f7119f3b8ae2f41ad5d6e0734683f5 100644 (file)
@@ -118,7 +118,6 @@ def handle(fn, data, include = 0):
     init(data)
 
     if include == 0:
-        bb.data.inheritFromOS(data)
         oldfile = None
     else:
         oldfile = bb.data.getVar('FILE', data)