Merge pull request #1016 from jongwu/order

obs: let patch set in order before apply them
This commit is contained in:
Julio Montes
2020-04-17 07:10:34 -05:00
committed by GitHub

View File

@@ -375,7 +375,7 @@ function find_patches() {
export RPM_APPLY_PATCHES="#Apply patches"$'\n'
[ ! -d patches ] && info "No patches found" && return
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"
rm -f debian.series
for p in ${patches}; do