소스 검색

pkg: debian: Sort patches before applying them

Dorian Stoll 1 년 전
부모
커밋
b9155febc2
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      .github/scripts/package/debian.sh

+ 3 - 2
.github/scripts/package/debian.sh

@@ -76,16 +76,17 @@ build-packages)
     pushd linux || exit 1
 
     # apply surface build/packaging patches
-    find .. -name '*.patch' -type f -print0 | xargs -0 -I '{}' \
+    find .. -name '*.patch' -type f -print0 | sort -z | xargs -0 -I '{}' \
         git apply --index --reject {}
 
     git add .
     git commit --allow-empty -m "Apply linux-surface packaging patches"
 
     KERNEL_MAJORVER="${KERNEL_VERSION%.*}"
+    PATCHES="../../../../patches/${KERNEL_MAJORVER}"
 
     # apply surface patches
-    find "../../../../patches/${KERNEL_MAJORVER}" -name '*.patch' -type f -print0 | xargs -0 -I '{}' \
+    find "${PATCHES}" -name '*.patch' -type f -print0 | sort -z | xargs -0 -I '{}' \
         git apply --index --reject {}
 
     git add .