summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-06-10 08:56:40 +0000
committerRichard Purdie <richard@openedhand.com>2006-06-10 08:56:40 +0000
commitbc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a (patch)
treeaff958d279429942895c02807bf5da84d77cf5c7 /bitbake/lib/bb/fetch/__init__.py
parent65cef0da326e839871f21f638bdfc7fda17e4654 (diff)
downloadpoky-bc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a.tar.gz
bitbake: Update against upstream stable branch (includes srcdate='now' support)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@458 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/fetch/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index ac698a0d1c..a2defd25a5 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -185,6 +185,28 @@ class Fetch(object):
185 return False 185 return False
186 try_mirror = staticmethod(try_mirror) 186 try_mirror = staticmethod(try_mirror)
187 187
188 def check_for_tarball(d, tarfn, dldir, date):
189 """
190 Check for a local copy then check the tarball stash.
191 Both checks are skipped if date == 'now'.
192
193 d Is a bb.data instance
194 tarfn is the name of the tarball
195 date is the SRCDATE
196 """
197 if "now" != date:
198 dl = os.path.join(dldir, tarfn)
199 if os.access(dl, os.R_OK):
200 bb.debug(1, "%s already exists, skipping checkout." % tarfn)
201 return True
202
203 # try to use the tarball stash
204 if Fetch.try_mirror(d, tarfn):
205 return True
206 return False
207 check_for_tarball = staticmethod(check_for_tarball)
208
209
188import cvs 210import cvs
189import git 211import git
190import local 212import local