[oe-commits] [openembedded-core] 01/02: sstate: Ensure mkdir happens before mktemp
git at git.openembedded.org
git at git.openembedded.org
Wed Dec 11 12:00:15 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 1360d8d7d99b70a80c8cdbc1fc6d9e6752483139
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Dec 11 11:59:14 2019 +0000
sstate: Ensure mkdir happens before mktemp
This avoids a directory not present error.
Fix a comment typo whilst here.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/sstate.bbclass | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 79ae392..b5267f0 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -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"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list