diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 31fde06e6a..00304b4e62 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -223,7 +223,7 @@ def exec_func_shell(function, d, runfile, cwd=None): with open(runfile, 'w') as script: script.write('#!/bin/sh -e\n') - if bb.msg.loggerVerbose[1]: + if bb.msg.loggerVerbose: script.write("set -x\n") data.emit_func(function, script, d) if cwd: @@ -234,7 +234,7 @@ def exec_func_shell(function, d, runfile, cwd=None): cmd = runfile - if bb.msg.loggerVerbose[1]: + if bb.msg.loggerVerbose: logfile = LogTee(logger, sys.stdout) else: logfile = sys.stdout