There is no initial_solution.manifest in the second build when
incremental rpm image generation, since the initial solution has been
skipped. So we should check it before cat it.
[YOCTO #3128]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
# we should add the previous solution manifest to the full "original" set to
# avoid duplicate install steps.
echo "Update original solution..."
- cat ${target_rootfs}/install/initial_solution.manifest >> ${target_rootfs}/install/original_solution.manifest
- cat ${target_rootfs}/install/total_solution.manifest >> ${target_rootfs}/install/original_solution.manifest
- rm ${target_rootfs}/install/initial_solution.manifest
- rm ${target_rootfs}/install/total_solution.manifest
+ for m in ${target_rootfs}/install/initial_solution.manifest \
+ ${target_rootfs}/install/total_solution.manifest; do
+ if [ -s $m ]; then
+ cat $m >> ${target_rootfs}/install/original_solution.manifest
+ rm -f $m
+ fi
+ done
fi
# Setup manifest of packages to install...