summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-11 11:59:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-11 11:59:49 +0000
commita5128cba80dbfe365517e6ddceececf545365006 (patch)
tree8ca1463fddb4c4ac4092a4432d7a488cc7ab30bb /meta/classes/sstate.bbclass
parent1571d6b45a71d2a70af7e333a04daf00fd648b9a (diff)
downloadpoky-a5128cba80dbfe365517e6ddceececf545365006.tar.gz
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>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 79ae392116..b5267f00be 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -747,14 +747,13 @@ sstate_task_postfunc[dirs] = "${WORKDIR}"
747# set as SSTATE_BUILDDIR. Will be run from within SSTATE_BUILDDIR. 747# set as SSTATE_BUILDDIR. Will be run from within SSTATE_BUILDDIR.
748# 748#
749sstate_create_package () { 749sstate_create_package () {
750 TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` 750 # Exit early if it already exists
751
752 # Exit earlu if it already exists
753 if [ -e ${SSTATE_PKG} ]; then 751 if [ -e ${SSTATE_PKG} ]; then
754 return 752 return
755 fi 753 fi
756 754
757 mkdir -p `dirname ${SSTATE_PKG}` 755 mkdir -p `dirname ${SSTATE_PKG}`
756 TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
758 757
759 # Use pigz if available 758 # Use pigz if available
760 OPT="-czS" 759 OPT="-czS"