summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2011-05-20 16:06:14 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-27 18:16:34 +0100
commit9a28f7744e2f4224e7c097b8c4c1d49731b9a47e (patch)
tree652ee042be5f8e5c2e035e945424c0c68fc3a48a /lib
parent9f27563d66523f5af1028f173d53ee75e0877d46 (diff)
downloadbitbake-9a28f7744e2f4224e7c097b8c4c1d49731b9a47e.tar.gz
fetch2/git: use logging.debug() and clarify messages
Replace a call to print() with logging.debug() and flesh out the message to clarify the state being reported. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch2/git.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index ae44a49b2..35a4bfd70 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -271,10 +271,13 @@ class Git(FetchMethod):
# Check if we have the rev already
if not os.path.exists(ud.clonedir):
- print("no repo")
+ logging.debug("GIT repository for %s does not exist in %s. \
+ Downloading.", url, ud.clonedir)
self.download(None, ud, d)
if not os.path.exists(ud.clonedir):
- logger.error("GIT repository for %s doesn't exist in %s, cannot get sortable buildnumber, using old value", url, ud.clonedir)
+ logger.error("GIT repository for %s does not exist in %s after \
+ download. Cannot get sortable buildnumber, using \
+ old value", url, ud.clonedir)
return None