summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-20 12:47:42 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-21 11:35:07 +0100
commit4591963649d862366c19451f9f7ded496fdef4e3 (patch)
treef1644c94711300608207ad665b73082f8d0d5517 /bitbake
parent3f30bf4eab707b1c8c27b7c10aa90a5f41a69980 (diff)
downloadpoky-4591963649d862366c19451f9f7ded496fdef4e3.tar.gz
bitbake: fetch2: Explicitly check for mirror tarballs in mirror handling code
With support for things like git:// -> git:// urls, we need to be more explicity about the mirrortarball check since we need to fall through to the following code in other cases. (From Poky rev: 28e858cd6f7509468ef3e527a86820b9e06044db) (Bitbake rev: a2459f5ca2f517964287f9a7c666a6856434e631) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py3
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):