diff options
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 37ade3f7a6..517c1001d2 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -566,7 +566,12 @@ sstate_create_package () { | |||
566 | TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` | 566 | TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` |
567 | # Need to handle empty directories | 567 | # Need to handle empty directories |
568 | if [ "$(ls -A)" ]; then | 568 | if [ "$(ls -A)" ]; then |
569 | tar --ignore-failed-read -czf $TFILE * | 569 | set +e |
570 | tar -czf $TFILE * | ||
571 | if [ $? -ne 0 ] && [ $? -ne 1 ]; then | ||
572 | exit 1 | ||
573 | fi | ||
574 | set -e | ||
570 | else | 575 | else |
571 | tar -cz --file=$TFILE --files-from=/dev/null | 576 | tar -cz --file=$TFILE --files-from=/dev/null |
572 | fi | 577 | fi |