mirror of
git://git.yoctoproject.org/poky
synced 2026-08-13 22:27:16 +00:00
sstate.bbclass: Correctly handle empty sstate packages
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
82745e4f32
commit
4c55d2bd04
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user