diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2007-08-15 21:44:58 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2007-08-15 21:44:58 +0000 |
commit | 71486b49624ed785c85b4800fc034719c554ebd9 (patch) | |
tree | c69a2ce16b058ae442d60378420cbba2dc78ce98 /lib/bb | |
parent | 2aeb46dc02e116bffd1afb20307ddd81ebb7dc35 (diff) | |
download | bitbake-contrib-71486b49624ed785c85b4800fc034719c554ebd9.tar.gz |
build.py: Add back python function output through a new mechanism to emulate old behaviour (for now)
Diffstat (limited to 'lib/bb')
-rw-r--r-- | lib/bb/build.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index 60e65d390..14be5e1a4 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -82,6 +82,8 @@ def exec_func(func, d, dirs = None): if not body: return + ispython = data.getVarFlag(func, "python", d) + if not dirs: dirs = (data.getVarFlag(func, 'dirs', d) or "").split() for adir in dirs: @@ -116,7 +118,7 @@ def exec_func(func, d, dirs = None): # Handle logfiles si = file('/dev/null', 'r') try: - if bb.msg.debug_level['default'] > 0: + if bb.msg.debug_level['default'] > 0 or ispython: so = os.popen("tee \"%s\"" % logfile, "w") else: so = file(logfile, 'w') @@ -138,7 +140,7 @@ def exec_func(func, d, dirs = None): try: # Run the function - if data.getVarFlag(func, "python", d): + if ispython: exec_func_python(func, d, runfile, logfile) else: exec_func_shell(func, d, runfile, logfile) |