d Is a bb.data instance
tarfn is the name of the tarball
"""
+ tarpath = os.path.join(data.getVar("DL_DIR", d, 1), tarfn)
+ if os.access(tarpath, os.R_OK):
+ return True
+
pn = data.getVar('PN', d, True)
src_tarball_stash = None
if pn:
data.setVar('TARFILES', dlfile, localdata)
data.setVar('TARFN', tarfn, localdata)
- dl = os.path.join(dldir, tarfn)
- if os.access(dl, os.R_OK):
- bb.debug(1, "%s already exists, skipping cvs checkout." % tarfn)
- continue
-
# try to use the tarball stash
if Fetch.try_mirror(d, tarfn):
+ bb.debug(1, "%s already exists or was mirrored, skipping cvs checkout." % tarfn)
continue
if date:
data.setVar('TARFILES', dlfile, localdata)
data.setVar('TARFN', tarfn, localdata)
- dl = os.path.join(dldir, tarfn)
- if os.access(dl, os.R_OK):
- bb.debug(1, "%s already exists, skipping svn checkout." % tarfn)
- continue
-
# try to use the tarball stash
if Fetch.try_mirror(d, tarfn):
+ bb.debug(1, "%s already exists or was mirrored, skipping svn checkout." % tarfn)
continue
olddir = os.path.abspath(os.getcwd())