qemu: patches: Fail if not patches directory

Fail if not patches directory is found.  Help to prevent
build a new qemu version with missing patches.

Signed-off-by: Carlos Venegas <jos.c.venegas.munoz@intel.com>
This commit is contained in:
Carlos Venegas 2021-03-18 20:07:40 +00:00
parent e221c45d7a
commit 07cfa4ce22

View File

@ -44,5 +44,7 @@ if [ -d "$patches_dir" ]; then
{ echo >&2 "ERROR: Not applied. Exiting..."; exit 1; }
done
else
echo "INFO: Patches directory does not exist"
echo "INFO: Patches directory does not exist: ${patches_dir}"
echo "INFO: Create a ${patches_dir}/no_patches file if the current qemu version has no patches"
exit 1;
fi