diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-03-20 14:40:50 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-24 17:01:34 +0000 |
commit | a7f3cbb4a20c1d50a84ca4bec0d30760c9aec46a (patch) | |
tree | 582f430dc32a5d8d10a0729b7a22d3bec04270df /bitbake | |
parent | 21ba8861bdfe9f83527cdc8a54d3b3b33b896413 (diff) | |
download | poky-a7f3cbb4a20c1d50a84ca4bec0d30760c9aec46a.tar.gz |
bitbake: fetch2: runfetchcmd(): Print workdir in debug message
The workdir is an important message when run git command, for exmample, before the patch:
Running git -c core.fsyncobjectfiles=0 branch --contains [snip]
We don't know where it is running, now it is:
Running 'git -c core.fsyncobjectfiles=0 branch --contains [snip]' in /path/to/git.opensvc.com.multipath-tools..git
Which is easier to debug.
(Bitbake rev: f25c05b73218d0e8edf2dd63b36bc09e547c5455)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 5c2a1c76c4..f5a5928311 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -858,7 +858,10 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None): | |||
858 | # Disable pseudo as it may affect ssh, potentially causing it to hang. | 858 | # Disable pseudo as it may affect ssh, potentially causing it to hang. |
859 | cmd = 'export PSEUDO_DISABLED=1; ' + cmd | 859 | cmd = 'export PSEUDO_DISABLED=1; ' + cmd |
860 | 860 | ||
861 | logger.debug(1, "Running %s", cmd) | 861 | if workdir: |
862 | logger.debug(1, "Running '%s' in %s" % (cmd, workdir)) | ||
863 | else: | ||
864 | logger.debug(1, "Running %s", cmd) | ||
862 | 865 | ||
863 | success = False | 866 | success = False |
864 | error_message = "" | 867 | error_message = "" |