bb.debug(1, "%s already exists, skipping svn checkout." % tarfn)
continue
- svn_tarball_stash = data.getVar('CVS_TARBALL_STASH', d, 1)
- if svn_tarball_stash:
- fetchcmd = data.getVar("FETCHCOMMAND_wget", d, 1)
- uri = svn_tarball_stash + tarfn
- bb.note("fetch " + uri)
- fetchcmd = fetchcmd.replace("${URI}", uri)
- ret = os.system(fetchcmd)
- if ret == 0:
- bb.note("Fetched %s from tarball stash, skipping checkout" % tarfn)
- continue
+ # try to use the tarball stash
+ if Fetch.try_mirror(d, tarfn):
+ continue
olddir = os.path.abspath(os.getcwd())
os.chdir(data.expand(dldir, localdata))