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 | poky-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/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 6e3a9277ab..d1a959371b 100644 --- a/bitbake/lib/bb/fetch/svn.py +++ b/bitbake/lib/bb/fetch/svn.py | |||
@@ -111,13 +111,7 @@ class Svn(Fetch): | |||
111 | data.setVar('TARFILES', dlfile, localdata) | 111 | data.setVar('TARFILES', dlfile, localdata) |
112 | data.setVar('TARFN', tarfn, localdata) | 112 | data.setVar('TARFN', tarfn, localdata) |
113 | 113 | ||
114 | dl = os.path.join(dldir, tarfn) | 114 | if Fetch.check_for_tarball(d, tarfn, dldir, date): |
115 | if os.access(dl, os.R_OK): | ||
116 | bb.debug(1, "%s already exists, skipping svn checkout." % tarfn) | ||
117 | continue | ||
118 | |||
119 | # try to use the tarball stash | ||
120 | if Fetch.try_mirror(d, tarfn): | ||
121 | continue | 115 | continue |
122 | 116 | ||
123 | olddir = os.path.abspath(os.getcwd()) | 117 | olddir = os.path.abspath(os.getcwd()) |
@@ -133,6 +127,9 @@ class Svn(Fetch): | |||
133 | 127 | ||
134 | if revision: | 128 | if revision: |
135 | svncmd = "svn co -r %s %s://%s/%s" % (revision, proto, svnroot, module) | 129 | svncmd = "svn co -r %s %s://%s/%s" % (revision, proto, svnroot, module) |
130 | elif date == "now": | ||
131 | svncmd = "svn co %s://%s/%s" % (proto, svnroot, module) | ||
132 | |||
136 | if svn_rsh: | 133 | if svn_rsh: |
137 | svncmd = "svn_RSH=\"%s\" %s" % (svn_rsh, svncmd) | 134 | svncmd = "svn_RSH=\"%s\" %s" % (svn_rsh, svncmd) |
138 | 135 | ||