summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2011-01-18 23:03:53 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-25 12:25:47 +0000
commite05918937c515dff845fcb4c9e94f8ecbea8c957 (patch)
treec07942361428a8271af45fd53c02a1c3840aa5a8 /bitbake/lib/bb/fetch2/git.py
parent8615b0e282baadf1ac342ec38b7c79e0ac351613 (diff)
downloadpoky-e05918937c515dff845fcb4c9e94f8ecbea8c957.tar.gz
bb.fetch2: rename "go" with "download" to better reflect its functionality
no functional change Signed-off-by: Yu Ke <ke.yu@intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index c62145770f..c962acb106 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -106,7 +106,7 @@ class Git(Fetch):
106 106
107 return True 107 return True
108 108
109 def go(self, loc, ud, d): 109 def download(self, loc, ud, d):
110 """Fetch url""" 110 """Fetch url"""
111 111
112 if ud.user: 112 if ud.user:
@@ -242,7 +242,7 @@ class Git(Fetch):
242 242
243 if not os.path.exists(ud.clonedir): 243 if not os.path.exists(ud.clonedir):
244 print("no repo") 244 print("no repo")
245 self.go(None, ud, d) 245 self.download(None, ud, d)
246 if not os.path.exists(ud.clonedir): 246 if not os.path.exists(ud.clonedir):
247 logger.error("GIT repository for %s doesn't exist in %s, cannot get sortable buildnumber, using old value", url, ud.clonedir) 247 logger.error("GIT repository for %s doesn't exist in %s, cannot get sortable buildnumber, using old value", url, ud.clonedir)
248 return None 248 return None
@@ -250,7 +250,7 @@ class Git(Fetch):
250 250
251 os.chdir(ud.clonedir) 251 os.chdir(ud.clonedir)
252 if not self._contains_ref(rev, d): 252 if not self._contains_ref(rev, d):
253 self.go(None, ud, d) 253 self.download(None, ud, d)
254 254
255 output = runfetchcmd("%s rev-list %s -- 2> /dev/null | wc -l" % (ud.basecmd, rev), d, quiet=True) 255 output = runfetchcmd("%s rev-list %s -- 2> /dev/null | wc -l" % (ud.basecmd, rev), d, quiet=True)
256 os.chdir(cwd) 256 os.chdir(cwd)