aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
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 fc232bf7..df4dfb54 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