summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/svn.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/svn.py')
-rw-r--r--bitbake/lib/bb/fetch2/svn.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/svn.py b/bitbake/lib/bb/fetch2/svn.py
index 3f172eec9b..ed70bcf8fb 100644
--- a/bitbake/lib/bb/fetch2/svn.py
+++ b/bitbake/lib/bb/fetch2/svn.py
@@ -49,7 +49,7 @@ class Svn(FetchMethod):
49 if not "module" in ud.parm: 49 if not "module" in ud.parm:
50 raise MissingParameterError('module', ud.url) 50 raise MissingParameterError('module', ud.url)
51 51
52 ud.basecmd = d.getVar('FETCHCMD_svn') 52 ud.basecmd = d.getVar("FETCHCMD_svn") or "/usr/bin/env svn --non-interactive --trust-server-cert"
53 53
54 ud.module = ud.parm["module"] 54 ud.module = ud.parm["module"]
55 55
@@ -59,8 +59,9 @@ class Svn(FetchMethod):
59 ud.path_spec = ud.parm["path_spec"] 59 ud.path_spec = ud.parm["path_spec"]
60 60
61 # Create paths to svn checkouts 61 # Create paths to svn checkouts
62 svndir = d.getVar("SVNDIR") or (d.getVar("DL_DIR") + "/svn")
62 relpath = self._strip_leading_slashes(ud.path) 63 relpath = self._strip_leading_slashes(ud.path)
63 ud.pkgdir = os.path.join(d.expand('${SVNDIR}'), ud.host, relpath) 64 ud.pkgdir = os.path.join(svndir, ud.host, relpath)
64 ud.moddir = os.path.join(ud.pkgdir, ud.module) 65 ud.moddir = os.path.join(ud.pkgdir, ud.module)
65 66
66 ud.setup_revisions(d) 67 ud.setup_revisions(d)