mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 00:32:12 +02:00
sstate.bbclass: Correctly handle empty sstate packages
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -382,7 +382,12 @@ python sstate_task_postfunc () {
|
||||
#
|
||||
sstate_create_package () {
|
||||
cd ${SSTATE_BUILDDIR}
|
||||
tar -cvzf ${SSTATE_PKG} *
|
||||
# Need to handle empty directories
|
||||
if [ "$(ls -A)" ]; then
|
||||
tar -cvzf ${SSTATE_PKG} *
|
||||
else
|
||||
tar -cvz --file=${SSTATE_PKG} --files-from=/dev/null
|
||||
fi
|
||||
|
||||
cd ${WORKDIR}
|
||||
rm -rf ${SSTATE_BUILDDIR}
|
||||
|
||||
Reference in New Issue
Block a user