1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

sstate.bbclass: Correctly handle empty sstate packages

Signed-off-by: Richard  Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2011-01-26 11:36:24 +00:00
parent 82745e4f32
commit 4c55d2bd04
+6 -1
View File
@@ -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}