mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
sstate: Ensure mkdir happens before mktemp
This avoids a directory not present error. Fix a comment typo whilst here. (From OE-Core rev: 1360d8d7d99b70a80c8cdbc1fc6d9e6752483139) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -747,14 +747,13 @@ sstate_task_postfunc[dirs] = "${WORKDIR}"
|
||||
# set as SSTATE_BUILDDIR. Will be run from within SSTATE_BUILDDIR.
|
||||
#
|
||||
sstate_create_package () {
|
||||
TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
|
||||
|
||||
# Exit earlu if it already exists
|
||||
# Exit early if it already exists
|
||||
if [ -e ${SSTATE_PKG} ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
mkdir -p `dirname ${SSTATE_PKG}`
|
||||
TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
|
||||
|
||||
# Use pigz if available
|
||||
OPT="-czS"
|
||||
|
||||
Reference in New Issue
Block a user