]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake/build.py: When looking up extra stamp info for setscene tasks, use the real...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jan 2011 11:20:50 +0000 (11:20 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Feb 2011 13:25:29 +0000 (13:25 +0000)
(Fixed based on a bug reported by Dongxiao Xu <dongxiao.xu@intel.com>)

(From Poky rev: c34913ea5a4f20ce4bca3c68a65e9f64f1e3910c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/build.py

index 4418563cd368d1e9780bc36d57ce3fca6e930d37..6da5bafd04f9c4f0c1a92d4ea6f351b16a37adf9 100644 (file)
@@ -310,13 +310,17 @@ def stamp_internal(taskname, d, file_name):
     In the bitbake core, d can be a CacheData and file_name will be set.
     When called in task context, d will be a data store, file_name will not be set
     """
+    taskflagname = taskname
+    if taskname.endswith("_setscene") and taskname != "do_setscene":
+        taskflagname = taskname.replace("_setscene", "")
+
     if file_name:
         stamp = d.stamp[file_name]
-        extrainfo = d.stamp_extrainfo[file_name].get(taskname) or ""
+        extrainfo = d.stamp_extrainfo[file_name].get(taskflagname) or ""
     else:
         stamp = d.getVar('STAMP', True)
         file_name = d.getVar('BB_FILENAME', True)
-        extrainfo = d.getVarFlag(taskname, 'stamp-extra-info', True) or ""
+        extrainfo = d.getVarFlag(taskflagname, 'stamp-extra-info', True) or ""
 
     if not stamp:
         return