ostbuild: Optionally log start of commands we want output from too

compose is slow, but we also want output.
This commit is contained in:
Colin Walters 2012-01-11 14:33:48 -05:00
parent e36c48f923
commit ef2a16525e
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@ def _get_env_for_cwd(cwd=None, env=None):
return env_copy
def run_sync_get_output(args, cwd=None, env=None, stderr=None, none_on_error=False,
log_success=False):
log_success=False, log_initiation=False):
if log_initiation:
log("running: %s" % (subprocess.list2cmdline(args),))
env_copy = _get_env_for_cwd(cwd, env)
f = open('/dev/null', 'r')
if stderr is None: