summaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-09 12:04:45 +0000
committerChris Larson <clarson@kergoth.com>2004-12-09 12:04:45 +0000
commit034c2463b47ad09b92788e24b6ec5158ed14fdf3 (patch)
tree0eee4e990928338a655f9c62b03888f8e6aabd9d /lib/bb/build.py
parenta699538fcfbb08c520985cc4d8d1256fb89e2c32 (diff)
downloadbitbake-034c2463b47ad09b92788e24b6ec5158ed14fdf3.tar.gz
Adapt bits to the new way of handling the debug level.
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index fc232bf79..df4dfb544 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -175,7 +175,7 @@ def exec_func_shell(func, d):
f = open(runfile, "w")
f.write("#!/bin/sh -e\n")
- if data.getVar("BBDEBUG", d): f.write("set -x\n")
+ if bb.debug_level > 0: f.write("set -x\n")
data.emit_env(f, d)
f.write("cd %s\n" % os.getcwd())
@@ -189,7 +189,7 @@ def exec_func_shell(func, d):
# open logs
si = file('/dev/null', 'r')
try:
- if data.getVar("BBDEBUG", d):
+ if bb.debug_level > 0:
so = os.popen("tee \"%s\"" % logfile, "w")
else:
so = file(logfile, 'w')
@@ -234,7 +234,7 @@ def exec_func_shell(func, d):
os.close(ose[0])
if ret==0:
- if not data.getVar("BBDEBUG", d):
+ if bb.debug_level > 0:
os.remove(runfile)
# os.remove(logfile)
return