obs: let patch set in order before apply them

obs ci for linuxcontainer will fail when apply patch set which have
dependency within. so patch set should be made in order before feed
to apply.

Fixes: #1015

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
Jianyong Wu 2020-04-16 10:19:01 +08:00
parent 367c2ac068
commit d271ee7479

View File

@ -375,7 +375,7 @@ function find_patches() {
export RPM_APPLY_PATCHES="#Apply patches"$'\n' export RPM_APPLY_PATCHES="#Apply patches"$'\n'
[ ! -d patches ] && info "No patches found" && return [ ! -d patches ] && info "No patches found" && return
local patches local patches
patches=$(find patches/ -type f -name '*.patch' -exec basename {} \;) patches=$(find patches/ -type f -name '*.patch' -exec basename {} \; | sort -t- -k1,1n)
n="1" n="1"
rm -f debian.series rm -f debian.series
for p in ${patches}; do for p in ${patches}; do