diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 9df91001d5..886d49afa2 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -294,6 +294,8 @@ def download(d, urls = None): | |||
294 | # Next try fetching from the original uri, u | 294 | # Next try fetching from the original uri, u |
295 | try: | 295 | try: |
296 | m.download(u, ud, d) | 296 | m.download(u, ud, d) |
297 | if hasattr(m, "build_mirror_data"): | ||
298 | m.build_mirror_data(u, ud, d) | ||
297 | localpath = ud.localpath | 299 | localpath = ud.localpath |
298 | except FetchError: | 300 | except FetchError: |
299 | # Remove any incomplete file | 301 | # Remove any incomplete file |
@@ -500,6 +502,8 @@ def try_mirrors(d, uri, mirrors, check = False, force = False): | |||
500 | return found | 502 | return found |
501 | else: | 503 | else: |
502 | ud.method.download(newuri, ud, ld) | 504 | ud.method.download(newuri, ud, ld) |
505 | if hasattr(ud.method,"build_mirror_data"): | ||
506 | ud.method.build_mirror_data(newuri, ud, ld) | ||
503 | return ud.localpath | 507 | return ud.localpath |
504 | except (bb.fetch2.MissingParameterError, | 508 | except (bb.fetch2.MissingParameterError, |
505 | bb.fetch2.FetchError, | 509 | bb.fetch2.FetchError, |