From d4cf3057a9af91835adfd477d6c42c970cb42544 Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Wed, 21 Oct 2020 15:10:22 -0400 Subject: [PATCH] packaging: qemu/apply_patches.sh should sort the patches Changed apply_patches.sh script so that patches are sorted before they be applied. Fixes #1014 Signed-off-by: Wainer dos Santos Moschetta --- tools/packaging/qemu/apply_patches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/packaging/qemu/apply_patches.sh b/tools/packaging/qemu/apply_patches.sh index 6cd0ef18c2..2b504401e2 100755 --- a/tools/packaging/qemu/apply_patches.sh +++ b/tools/packaging/qemu/apply_patches.sh @@ -18,7 +18,7 @@ patches_dir="${script_dir}/patches/${stable_branch}" echo "Handle patches for QEMU $qemu_version (stable ${stable_branch})" if [ -d $patches_dir ]; then - for patch in $(find $patches_dir -name '*.patch'); do + for patch in $(find $patches_dir -name '*.patch'|sort -t- -k1,1n); do echo "Apply $patch" git apply "$patch" done