summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/svn.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-02-01 16:56:16 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-02-15 17:14:51 +0000
commit11375c3f74511ce59ad5a625bfda4121a8714345 (patch)
treed0b4accffee48a4308f7b327d032f2127773aa7a /lib/bb/fetch/svn.py
parent57cec31f4d5918ce219a1586746fe1301492edb9 (diff)
downloadbitbake-11375c3f74511ce59ad5a625bfda4121a8714345.tar.gz
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. (From Poky rev: 0737552c1de18c64db8a5a52248a3e7b217f30aa) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'lib/bb/fetch/svn.py')
-rw-r--r--lib/bb/fetch/svn.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/bb/fetch/svn.py b/lib/bb/fetch/svn.py
index eef9862a8..ba9f6ab10 100644
--- a/lib/bb/fetch/svn.py
+++ b/lib/bb/fetch/svn.py
@@ -136,11 +136,6 @@ class Svn(Fetch):
def go(self, loc, ud, d):
"""Fetch url"""
- # try to use the tarball stash
- if Fetch.try_mirror(d, ud.localfile):
- bb.msg.debug(1, bb.msg.domain.Fetcher, "%s already exists or was mirrored, skipping svn checkout." % ud.localpath)
- return
-
bb.msg.debug(2, bb.msg.domain.Fetcher, "Fetch: checking for module directory '" + ud.moddir + "'")
if os.access(os.path.join(ud.moddir, '.svn'), os.R_OK):