From: git@git.openembedded.org
To: bitbake-devel@lists.openembedded.org
Subject: Richard Purdie : build.py: Only use set -x when debug is enabled
Date: Thu, 5 Jan 2012 13:21:29 +0000 (UTC) [thread overview]
Message-ID: <20120105132129.A245E10331@opal> (raw)
Module: bitbake.git
Branch: master-poky
Commit: ebaa9dc62246635efa634b7330d97606c6c02eb4
URL: http://git.openembedded.org/?p=bitbake.git&a=commit;h=ebaa9dc62246635efa634b7330d97606c6c02eb4
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date: Wed Jun 8 20:28:31 2011 +0100
build.py: Only use set -x when debug is enabled
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
lib/bb/build.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 1a47fc5..aabc1b6 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -222,9 +222,9 @@ def exec_func_shell(function, d, runfile, cwd=None):
with open(runfile, 'w') as script:
script.write('#!/bin/sh -e\n')
+ if bb.msg.loggerDefaultVerbose:
+ script.write("set -x\n")
data.emit_func(function, script, d)
-
- script.write("set -x\n")
if cwd:
script.write("cd %s\n" % cwd)
script.write("%s\n" % function)
reply other threads:[~2012-01-05 13:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120105132129.A245E10331@opal \
--to=git@git.openembedded.org \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.