[oe-commits] [bitbake] 01/02: fetch2: runfetchcmd(): Print workdir in debug message

git at git.openembedded.org git at git.openembedded.org
Thu Mar 21 23:34:12 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit f25c05b73218d0e8edf2dd63b36bc09e547c5455
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Wed Mar 20 14:40:50 2019 +0800

    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.
    
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/__init__.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 5c2a1c7..f5a5928 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -858,7 +858,10 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None):
     # Disable pseudo as it may affect ssh, potentially causing it to hang.
     cmd = 'export PSEUDO_DISABLED=1; ' + cmd
 
-    logger.debug(1, "Running %s", cmd)
+    if workdir:
+        logger.debug(1, "Running '%s' in %s" % (cmd, workdir))
+    else:
+        logger.debug(1, "Running %s", cmd)
 
     success = False
     error_message = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list