diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-11 11:59:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-11 11:59:49 +0000 |
commit | a5128cba80dbfe365517e6ddceececf545365006 (patch) | |
tree | 8ca1463fddb4c4ac4092a4432d7a488cc7ab30bb /meta/classes/sstate.bbclass | |
parent | 1571d6b45a71d2a70af7e333a04daf00fd648b9a (diff) | |
download | poky-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.bbclass | 5 |
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 | # |
749 | sstate_create_package () { | 749 | sstate_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" |