]> code.ossystems Code Review - openembedded-core.git/commit
bitbake: unify mirror support and make it independant of the fetcher
authorJoshua Lock <josh@linux.intel.com>
Mon, 1 Feb 2010 16:56:16 +0000 (16:56 +0000)
committerJoshua Lock <josh@linux.intel.com>
Thu, 4 Feb 2010 00:18:29 +0000 (00:18 +0000)
commit0737552c1de18c64db8a5a52248a3e7b217f30aa
treed556e058c5e3b85dde0b3c13f5e9e25e472a5ed8
parent0b52537f5ce39a6025a2a8de381792accc333b8e
bitbake: unify mirror support and make it independant of the fetcher

This patch serves two purposes. Firstly it unifies the concept of mirrors into
PREMIRRORS and MIRRORS. PREMIRRORS are tried before the SRC_URI defined in the
recipe whereas MIRRORS are tried only if that fails.
The tarball stash was conceptually inline with a PREMIRROR only with special
handling within the wget fetcher and therefore only worked with certain
fetch types.
Secondly the patch removes the need for individual fetch implementations to
worry about mirror handling.

With this patch, the base fetch implementation will first try to use a
PREMIRROR to fetch the desired object, if this fails the native fetch method
for the object will be tried and if this fails will try to fetch a copy from
one of the MIRRORS.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
bitbake/lib/bb/fetch/__init__.py
bitbake/lib/bb/fetch/bzr.py
bitbake/lib/bb/fetch/cvs.py
bitbake/lib/bb/fetch/git.py
bitbake/lib/bb/fetch/hg.py
bitbake/lib/bb/fetch/osc.py
bitbake/lib/bb/fetch/perforce.py
bitbake/lib/bb/fetch/svk.py
bitbake/lib/bb/fetch/svn.py
bitbake/lib/bb/fetch/wget.py