diff options
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 5b64b493e9..2a050dc7bc 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -646,10 +646,9 @@ python sstate_task_postfunc () { | |||
646 | 646 | ||
647 | # | 647 | # |
648 | # Shell function to generate a sstate package from a directory | 648 | # Shell function to generate a sstate package from a directory |
649 | # set as SSTATE_BUILDDIR | 649 | # set as SSTATE_BUILDDIR. Will be run from within SSTATE_BUILDDIR. |
650 | # | 650 | # |
651 | sstate_create_package () { | 651 | sstate_create_package () { |
652 | cd ${SSTATE_BUILDDIR} | ||
653 | TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` | 652 | TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` |
654 | # Need to handle empty directories | 653 | # Need to handle empty directories |
655 | if [ "$(ls -A)" ]; then | 654 | if [ "$(ls -A)" ]; then |
@@ -672,10 +671,9 @@ sstate_create_package () { | |||
672 | 671 | ||
673 | # | 672 | # |
674 | # Shell function to decompress and prepare a package for installation | 673 | # Shell function to decompress and prepare a package for installation |
674 | # Will be run from within SSTATE_INSTDIR. | ||
675 | # | 675 | # |
676 | sstate_unpack_package () { | 676 | sstate_unpack_package () { |
677 | mkdir -p ${SSTATE_INSTDIR} | ||
678 | cd ${SSTATE_INSTDIR} | ||
679 | tar -xmvzf ${SSTATE_PKG} | 677 | tar -xmvzf ${SSTATE_PKG} |
680 | # Use "! -w ||" to return true for read only files | 678 | # Use "! -w ||" to return true for read only files |
681 | [ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG} | 679 | [ ! -w ${SSTATE_PKG} ] || touch --no-dereference ${SSTATE_PKG} |