diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2')
| -rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index e5c4b341b0..414cc2b6b1 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
| @@ -476,9 +476,10 @@ def try_mirrors(d, origud, mirrors, check = False): | |||
| 476 | 476 | ||
| 477 | if not os.path.exists(ud.donestamp) or ud.method.need_update(newuri, ud, ld): | 477 | if not os.path.exists(ud.donestamp) or ud.method.need_update(newuri, ud, ld): |
| 478 | ud.method.download(newuri, ud, ld) | 478 | ud.method.download(newuri, ud, ld) |
| 479 | open(ud.donestamp, 'w').close() | 479 | if os.path.exists(ud.localpath): |
| 480 | if hasattr(ud.method,"build_mirror_data"): | 480 | open(ud.donestamp, 'w').close() |
| 481 | ud.method.build_mirror_data(newuri, ud, ld) | 481 | if hasattr(ud.method,"build_mirror_data"): |
| 482 | ud.method.build_mirror_data(newuri, ud, ld) | ||
| 482 | 483 | ||
| 483 | if not ud.localpath or not os.path.exists(ud.localpath): | 484 | if not ud.localpath or not os.path.exists(ud.localpath): |
| 484 | continue | 485 | continue |
