diff options
-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 451d104f67..b9f673c214 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -805,6 +805,10 @@ def try_mirror_url(newuri, origud, ud, ld, check = False): | |||
805 | dest = os.path.join(dldir, os.path.basename(ud.localpath)) | 805 | dest = os.path.join(dldir, os.path.basename(ud.localpath)) |
806 | if not os.path.exists(dest): | 806 | if not os.path.exists(dest): |
807 | os.symlink(ud.localpath, dest) | 807 | os.symlink(ud.localpath, dest) |
808 | if not os.path.exists(origud.donestamp) or origud.method.need_update(origud.url, origud, ld): | ||
809 | origud.method.download(origud.url, origud, ld) | ||
810 | if hasattr(ud.method,"build_mirror_data"): | ||
811 | origud.method.build_mirror_data(origud.url, origud, ld) | ||
808 | return None | 812 | return None |
809 | # Otherwise the result is a local file:// and we symlink to it | 813 | # Otherwise the result is a local file:// and we symlink to it |
810 | if not os.path.exists(origud.localpath): | 814 | if not os.path.exists(origud.localpath): |