diff options
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 16d69281f1..7ca1663b7c 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -28,7 +28,7 @@ | |||
28 | from bb import data, event, mkdirhier, utils | 28 | from bb import data, event, mkdirhier, utils |
29 | import bb, os, sys | 29 | import bb, os, sys |
30 | 30 | ||
31 | # When we execute a python function we'd like certain things | 31 | # When we execute a python function we'd like certain things |
32 | # in all namespaces, hence we add them to __builtins__ | 32 | # in all namespaces, hence we add them to __builtins__ |
33 | # If we do not do this and use the exec globals, they will | 33 | # If we do not do this and use the exec globals, they will |
34 | # not be available to subfunctions. | 34 | # not be available to subfunctions. |
@@ -212,7 +212,7 @@ def exec_func_python(func, d, runfile, logfile): | |||
212 | try: | 212 | try: |
213 | utils.better_exec(comp, {"d": d}, tmp, bbfile) | 213 | utils.better_exec(comp, {"d": d}, tmp, bbfile) |
214 | except: | 214 | except: |
215 | (t,value,tb) = sys.exc_info() | 215 | (t, value, tb) = sys.exc_info() |
216 | 216 | ||
217 | if t in [bb.parse.SkipPackage, bb.build.FuncFailed]: | 217 | if t in [bb.parse.SkipPackage, bb.build.FuncFailed]: |
218 | raise | 218 | raise |
@@ -303,8 +303,8 @@ def exec_task(task, d): | |||
303 | 303 | ||
304 | def extract_stamp(d, fn): | 304 | def extract_stamp(d, fn): |
305 | """ | 305 | """ |
306 | Extracts stamp format which is either a data dictonary (fn unset) | 306 | Extracts stamp format which is either a data dictonary (fn unset) |
307 | or a dataCache entry (fn set). | 307 | or a dataCache entry (fn set). |
308 | """ | 308 | """ |
309 | if fn: | 309 | if fn: |
310 | return d.stamp[fn] | 310 | return d.stamp[fn] |
@@ -361,7 +361,7 @@ def add_tasks(tasklist, d): | |||
361 | if not task in task_deps['tasks']: | 361 | if not task in task_deps['tasks']: |
362 | task_deps['tasks'].append(task) | 362 | task_deps['tasks'].append(task) |
363 | 363 | ||
364 | flags = data.getVarFlags(task, d) | 364 | flags = data.getVarFlags(task, d) |
365 | def getTask(name): | 365 | def getTask(name): |
366 | if not name in task_deps: | 366 | if not name in task_deps: |
367 | task_deps[name] = {} | 367 | task_deps[name] = {} |
@@ -387,4 +387,3 @@ def remove_task(task, kill, d): | |||
387 | If kill is 1, also remove tasks that depend on this task.""" | 387 | If kill is 1, also remove tasks that depend on this task.""" |
388 | 388 | ||
389 | data.delVarFlag(task, 'task', d) | 389 | data.delVarFlag(task, 'task', d) |
390 | |||