diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-28 17:24:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-02 17:25:29 +0000 |
commit | c0bdd186090d92dac97d92bceb43a4e8c13203fb (patch) | |
tree | 3b2b7c393919c8d5fa7c117661ed559c8d9926e7 /bitbake/lib/bb/fetch2 | |
parent | c547149cae38a6e45255b6be74d8ea2dc8a8b1bd (diff) | |
download | ast2050-yocto-poky-c0bdd186090d92dac97d92bceb43a4e8c13203fb.zip ast2050-yocto-poky-c0bdd186090d92dac97d92bceb43a4e8c13203fb.tar.gz |
bitbake: fetch/svk: Drop usage of old style *COMMAND variable and MKTEMPDIRCMD
Clean up some horrible old code and drop usage of the old style *COMMAND
variable and MKTEMPDIRCMD whilst in here. This means we don't need to touch
OVERRIDES either.
(Bitbake rev: c127bb3a9b7b1d2ab2c833ff73186b6ead0dc29c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r-- | bitbake/lib/bb/fetch2/svk.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bitbake/lib/bb/fetch2/svk.py b/bitbake/lib/bb/fetch2/svk.py index 23631b4..6f70a3b 100644 --- a/bitbake/lib/bb/fetch2/svk.py +++ b/bitbake/lib/bb/fetch2/svk.py @@ -72,12 +72,10 @@ class Svk(FetchMethod): svkcmd = "svk co -r %s %s/%s" % (ud.revision, svkroot, ud.module) # create temp directory - localdata = data.createCopy(d) - data.update_data(localdata) logger.debug(2, "Fetch: creating temporary directory") - bb.utils.mkdirhier(data.expand('${WORKDIR}', localdata)) - data.setVar('TMPBASE', data.expand('${WORKDIR}/oesvk.XXXXXX', localdata), localdata) - tmpfile, errors = bb.process.run(data.getVar('MKTEMPDIRCMD', localdata, True) or "false") + bb.utils.mkdirhier(d.expand('${WORKDIR}')) + mktemp = d.getVar("FETCHCMD_svkmktemp", True) or d.expand("mktemp -d -q '${WORKDIR}/oesvk.XXXXXX'") + tmpfile, errors = bb.process.run(mktemp) tmpfile = tmpfile.strip() if not tmpfile: logger.error() |