[poky] [PATCH 3/3] fetch2/git: use logging.debug() and clarify messages
Darren Hart
dvhart at linux.intel.com
Fri May 20 16:06:14 PDT 2011
From: Darren Hart <dvhart at linux.intel.com>
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 at linux.intel.com>
Cc: Yu Ke <ke.yu at intel.com>
---
bitbake/lib/bb/fetch2/git.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 7ffaa5e..c14346b 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -241,10 +241,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
--
1.7.1
More information about the poky
mailing list