diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-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 e4af9519ba..737ae7ed8f 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -490,7 +490,8 @@ def try_mirror_url(newuri, origud, ud, ld, check = False): | |||
490 | # We may be obtaining a mirror tarball which needs further processing by the real fetcher | 490 | # We may be obtaining a mirror tarball which needs further processing by the real fetcher |
491 | # If that tarball is a local file:// we need to provide a symlink to it | 491 | # If that tarball is a local file:// we need to provide a symlink to it |
492 | dldir = ld.getVar("DL_DIR", True) | 492 | dldir = ld.getVar("DL_DIR", True) |
493 | if os.path.basename(ud.localpath) != os.path.basename(origud.localpath): | 493 | if origud.mirrortarball and os.path.basename(ud.localpath) == os.path.basename(origud.mirrortarball) \ |
494 | and os.path.basename(ud.localpath) != os.path.basename(origud.localpath): | ||
494 | open(ud.donestamp, 'w').close() | 495 | open(ud.donestamp, 'w').close() |
495 | dest = os.path.join(dldir, os.path.basename(ud.localpath)) | 496 | dest = os.path.join(dldir, os.path.basename(ud.localpath)) |
496 | if not os.path.exists(dest): | 497 | if not os.path.exists(dest): |