diff options
Diffstat (limited to 'bitbake/lib')
| -rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 8e361ed27e..405f07469b 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
| @@ -475,7 +475,8 @@ def try_mirror_url(newuri, origud, ud, ld, check = False): | |||
| 475 | # We may be obtaining a mirror tarball which needs further processing by the real fetcher | 475 | # We may be obtaining a mirror tarball which needs further processing by the real fetcher |
| 476 | # If that tarball is a local file:// we need to provide a symlink to it | 476 | # If that tarball is a local file:// we need to provide a symlink to it |
| 477 | dldir = ld.getVar("DL_DIR", True) | 477 | dldir = ld.getVar("DL_DIR", True) |
| 478 | if os.path.basename(ud.localpath) != os.path.basename(origud.localpath): | 478 | if origud.mirrortarball and os.path.basename(ud.localpath) == os.path.basename(origud.mirrortarball) \ |
| 479 | and os.path.basename(ud.localpath) != os.path.basename(origud.localpath): | ||
| 479 | open(ud.donestamp, 'w').close() | 480 | open(ud.donestamp, 'w').close() |
| 480 | dest = os.path.join(dldir, os.path.basename(ud.localpath)) | 481 | dest = os.path.join(dldir, os.path.basename(ud.localpath)) |
| 481 | if not os.path.exists(dest): | 482 | if not os.path.exists(dest): |
