summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/svk.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/bitbake/lib/bb/fetch2/svk.py b/bitbake/lib/bb/fetch2/svk.py
index 23631b43f4..6f70a3be28 100644
--- a/bitbake/lib/bb/fetch2/svk.py
+++ b/bitbake/lib/bb/fetch2/svk.py
@@ -72,12 +72,10 @@ class Svk(FetchMethod):
72 svkcmd = "svk co -r %s %s/%s" % (ud.revision, svkroot, ud.module) 72 svkcmd = "svk co -r %s %s/%s" % (ud.revision, svkroot, ud.module)
73 73
74 # create temp directory 74 # create temp directory
75 localdata = data.createCopy(d)
76 data.update_data(localdata)
77 logger.debug(2, "Fetch: creating temporary directory") 75 logger.debug(2, "Fetch: creating temporary directory")
78 bb.utils.mkdirhier(data.expand('${WORKDIR}', localdata)) 76 bb.utils.mkdirhier(d.expand('${WORKDIR}'))
79 data.setVar('TMPBASE', data.expand('${WORKDIR}/oesvk.XXXXXX', localdata), localdata) 77 mktemp = d.getVar("FETCHCMD_svkmktemp", True) or d.expand("mktemp -d -q '${WORKDIR}/oesvk.XXXXXX'")
80 tmpfile, errors = bb.process.run(data.getVar('MKTEMPDIRCMD', localdata, True) or "false") 78 tmpfile, errors = bb.process.run(mktemp)
81 tmpfile = tmpfile.strip() 79 tmpfile = tmpfile.strip()
82 if not tmpfile: 80 if not tmpfile:
83 logger.error() 81 logger.error()