summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/__init__.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/__init__.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/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index d19f0e738e..9df91001d5 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -263,7 +263,7 @@ def subprocess_setup():
263 # SIGPIPE errors are known issues with gzip/bash 263 # SIGPIPE errors are known issues with gzip/bash
264 signal.signal(signal.SIGPIPE, signal.SIG_DFL) 264 signal.signal(signal.SIGPIPE, signal.SIG_DFL)
265 265
266def go(d, urls = None): 266def download(d, urls = None):
267 """ 267 """
268 Fetch all urls 268 Fetch all urls
269 init must have previously been called 269 init must have previously been called
@@ -293,7 +293,7 @@ def go(d, urls = None):
293 if m.forcefetch(u, ud, d) or not localpath: 293 if m.forcefetch(u, ud, d) or not localpath:
294 # Next try fetching from the original uri, u 294 # Next try fetching from the original uri, u
295 try: 295 try:
296 m.go(u, ud, d) 296 m.download(u, ud, d)
297 localpath = ud.localpath 297 localpath = ud.localpath
298 except FetchError: 298 except FetchError:
299 # Remove any incomplete file 299 # Remove any incomplete file
@@ -499,7 +499,7 @@ def try_mirrors(d, uri, mirrors, check = False, force = False):
499 if found: 499 if found:
500 return found 500 return found
501 else: 501 else:
502 ud.method.go(newuri, ud, ld) 502 ud.method.download(newuri, ud, ld)
503 return ud.localpath 503 return ud.localpath
504 except (bb.fetch2.MissingParameterError, 504 except (bb.fetch2.MissingParameterError,
505 bb.fetch2.FetchError, 505 bb.fetch2.FetchError,
@@ -626,7 +626,7 @@ class Fetch(object):
626 """ 626 """
627 return False 627 return False
628 628
629 def go(self, url, urldata, d): 629 def download(self, url, urldata, d):
630 """ 630 """
631 Fetch urls 631 Fetch urls
632 Assumes localpath was called first 632 Assumes localpath was called first