summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2014-08-20 08:23:27 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-25 08:57:45 +0100
commit6d08e5bb09293c03d8953831888c64d8eca889bf (patch)
tree7a2d7dff6f1db1324d84204a4c63669f59d23761 /bitbake/lib/bb/build.py
parent91083de4cb03bcb279ede3024cd2660b6c653808 (diff)
downloadpoky-6d08e5bb09293c03d8953831888c64d8eca889bf.tar.gz
bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional.
(Bitbake rev: 587b144ee409d444494d8d7f2d1c53ede8f7c953) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r--bitbake/lib/bb/build.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index dcd42ef8cf..f2922f3087 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -23,7 +23,7 @@
23# with this program; if not, write to the Free Software Foundation, Inc., 23# with this program; if not, write to the Free Software Foundation, Inc.,
24# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 24# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25# 25#
26#Based on functions from the base bb module, Copyright 2003 Holger Schurig 26# Based on functions from the base bb module, Copyright 2003 Holger Schurig
27 27
28import os 28import os
29import sys 29import sys
@@ -42,9 +42,8 @@ logger = logging.getLogger('BitBake.Build')
42 42
43NULL = open(os.devnull, 'r+') 43NULL = open(os.devnull, 'r+')
44 44
45 45# When we execute a Python function, we'd like certain things
46# When we execute a python function we'd like certain things 46# in all namespaces, hence we add them to __builtins__.
47# in all namespaces, hence we add them to __builtins__
48# If we do not do this and use the exec globals, they will 47# If we do not do this and use the exec globals, they will
49# not be available to subfunctions. 48# not be available to subfunctions.
50__builtins__['bb'] = bb 49__builtins__['bb'] = bb
@@ -143,7 +142,7 @@ class LogTee(object):
143 self.outfile.flush() 142 self.outfile.flush()
144 143
145def exec_func(func, d, dirs = None): 144def exec_func(func, d, dirs = None):
146 """Execute an BB 'function'""" 145 """Execute a BB 'function'"""
147 146
148 body = d.getVar(func) 147 body = d.getVar(func)
149 if not body: 148 if not body:
@@ -417,7 +416,7 @@ def _exec_task(fn, task, d, quieterr):
417 os.dup2(logfile.fileno(), oso[1]) 416 os.dup2(logfile.fileno(), oso[1])
418 os.dup2(logfile.fileno(), ose[1]) 417 os.dup2(logfile.fileno(), ose[1])
419 418
420 # Ensure python logging goes to the logfile 419 # Ensure Python logging goes to the logfile
421 handler = logging.StreamHandler(logfile) 420 handler = logging.StreamHandler(logfile)
422 handler.setFormatter(logformatter) 421 handler.setFormatter(logformatter)
423 # Always enable full debug output into task logfiles 422 # Always enable full debug output into task logfiles