diff options
author | Richard Purdie <richard@openedhand.com> | 2006-06-10 08:56:40 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-06-10 08:56:40 +0000 |
commit | bc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a (patch) | |
tree | aff958d279429942895c02807bf5da84d77cf5c7 /bitbake/lib/bb/fetch/svn.py | |
parent | 65cef0da326e839871f21f638bdfc7fda17e4654 (diff) | |
download | openembedded-core-bc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a.tar.gz openembedded-core-bc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a.tar.bz2 openembedded-core-bc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a.tar.xz openembedded-core-bc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a.zip |
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/svn.py')
-rw-r--r-- | bitbake/lib/bb/fetch/svn.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bitbake/lib/bb/fetch/svn.py b/bitbake/lib/bb/fetch/svn.py index 6e3a9277a..d1a959371 100644 --- a/bitbake/lib/bb/fetch/svn.py +++ b/bitbake/lib/bb/fetch/svn.py @@ -111,13 +111,7 @@ class Svn(Fetch): 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): + if Fetch.check_for_tarball(d, tarfn, dldir, date): continue olddir = os.path.abspath(os.getcwd()) @@ -133,6 +127,9 @@ class Svn(Fetch): if revision: svncmd = "svn co -r %s %s://%s/%s" % (revision, proto, svnroot, module) + elif date == "now": + svncmd = "svn co %s://%s/%s" % (proto, svnroot, module) + if svn_rsh: svncmd = "svn_RSH=\"%s\" %s" % (svn_rsh, svncmd) |