diff options
| author | Robert P. J. Day <rpjday@crashcourse.ca> | 2014-08-20 08:23:27 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-25 08:57:45 +0100 |
| commit | 6d08e5bb09293c03d8953831888c64d8eca889bf (patch) | |
| tree | 7a2d7dff6f1db1324d84204a4c63669f59d23761 /bitbake/lib/bb/build.py | |
| parent | 91083de4cb03bcb279ede3024cd2660b6c653808 (diff) | |
| download | poky-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.py | 11 |
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 | ||
| 28 | import os | 28 | import os |
| 29 | import sys | 29 | import sys |
| @@ -42,9 +42,8 @@ logger = logging.getLogger('BitBake.Build') | |||
| 42 | 42 | ||
| 43 | NULL = open(os.devnull, 'r+') | 43 | NULL = 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 | ||
| 145 | def exec_func(func, d, dirs = None): | 144 | def 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 |
