diff options
author | Yu Ke <ke.yu@intel.com> | 2011-01-18 23:03:53 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-25 12:25:47 +0000 |
commit | e05918937c515dff845fcb4c9e94f8ecbea8c957 (patch) | |
tree | c07942361428a8271af45fd53c02a1c3840aa5a8 /bitbake/lib/bb/fetch2/git.py | |
parent | 8615b0e282baadf1ac342ec38b7c79e0ac351613 (diff) | |
download | ast2050-yocto-poky-e05918937c515dff845fcb4c9e94f8ecbea8c957.zip ast2050-yocto-poky-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.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index c621457..c962acb 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -106,7 +106,7 @@ class Git(Fetch): return True - def go(self, loc, ud, d): + def download(self, loc, ud, d): """Fetch url""" if ud.user: @@ -242,7 +242,7 @@ class Git(Fetch): if not os.path.exists(ud.clonedir): print("no repo") - self.go(None, ud, d) + 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) return None @@ -250,7 +250,7 @@ class Git(Fetch): os.chdir(ud.clonedir) if not self._contains_ref(rev, d): - self.go(None, ud, d) + self.download(None, ud, d) output = runfetchcmd("%s rev-list %s -- 2> /dev/null | wc -l" % (ud.basecmd, rev), d, quiet=True) os.chdir(cwd) |