mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
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 <wainersm@redhat.com>
This commit is contained in:
parent
8c3228c286
commit
d4cf3057a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user