From 07cfa4ce22b93608bf45df03862cf18a906fbca9 Mon Sep 17 00:00:00 2001 From: Carlos Venegas Date: Thu, 18 Mar 2021 20:07:40 +0000 Subject: [PATCH] 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 --- tools/packaging/scripts/apply_patches.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/packaging/scripts/apply_patches.sh b/tools/packaging/scripts/apply_patches.sh index aa6b19b609..ada89e76ec 100755 --- a/tools/packaging/scripts/apply_patches.sh +++ b/tools/packaging/scripts/apply_patches.sh @@ -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