summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
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:27:18 +0100
commit5a4b8cef20ce22aebe87721290dd99f25d5bb686 (patch)
tree6a69a52b4c5b23e02097fb618176b174028de57f /bitbake/lib/bb/fetch2
parentfd005661443b327342b9542ab42177960e1a91a9 (diff)
downloadpoky-5a4b8cef20ce22aebe87721290dd99f25d5bb686.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. (Bitbake rev: 9a28f7744e2f4224e7c097b8c4c1d49731b9a47e) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/git.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index ae44a49b2a..35a4bfd706 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -271,10 +271,13 @@ class Git(FetchMethod):
271 # Check if we have the rev already 271 # Check if we have the rev already
272 272
273 if not os.path.exists(ud.clonedir): 273 if not os.path.exists(ud.clonedir):
274 print("no repo") 274 logging.debug("GIT repository for %s does not exist in %s. \
275 Downloading.", url, ud.clonedir)
275 self.download(None, ud, d) 276 self.download(None, ud, d)
276 if not os.path.exists(ud.clonedir): 277 if not os.path.exists(ud.clonedir):
277 logger.error("GIT repository for %s doesn't exist in %s, cannot get sortable buildnumber, using old value", url, ud.clonedir) 278 logger.error("GIT repository for %s does not exist in %s after \
279 download. Cannot get sortable buildnumber, using \
280 old value", url, ud.clonedir)
278 return None 281 return None
279 282
280 283