mirror of
https://git.yoctoproject.org/poky
synced 2026-06-04 02:00:04 +00:00
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>
This commit is contained in:
@@ -72,12 +72,10 @@ class Svk(FetchMethod):
|
|||||||
svkcmd = "svk co -r %s %s/%s" % (ud.revision, svkroot, ud.module)
|
svkcmd = "svk co -r %s %s/%s" % (ud.revision, svkroot, ud.module)
|
||||||
|
|
||||||
# create temp directory
|
# create temp directory
|
||||||
localdata = data.createCopy(d)
|
|
||||||
data.update_data(localdata)
|
|
||||||
logger.debug(2, "Fetch: creating temporary directory")
|
logger.debug(2, "Fetch: creating temporary directory")
|
||||||
bb.utils.mkdirhier(data.expand('${WORKDIR}', localdata))
|
bb.utils.mkdirhier(d.expand('${WORKDIR}'))
|
||||||
data.setVar('TMPBASE', data.expand('${WORKDIR}/oesvk.XXXXXX', localdata), localdata)
|
mktemp = d.getVar("FETCHCMD_svkmktemp", True) or d.expand("mktemp -d -q '${WORKDIR}/oesvk.XXXXXX'")
|
||||||
tmpfile, errors = bb.process.run(data.getVar('MKTEMPDIRCMD', localdata, True) or "false")
|
tmpfile, errors = bb.process.run(mktemp)
|
||||||
tmpfile = tmpfile.strip()
|
tmpfile = tmpfile.strip()
|
||||||
if not tmpfile:
|
if not tmpfile:
|
||||||
logger.error()
|
logger.error()
|
||||||
|
|||||||
Reference in New Issue
Block a user