summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/svn.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch/svn.py')
-rw-r--r--bitbake/lib/bb/fetch/svn.py11
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