diff --git a/obs-packaging/kernel/update.sh b/obs-packaging/kernel/update.sh index d6d55e4ce1..1c82be14a2 100755 --- a/obs-packaging/kernel/update.sh +++ b/obs-packaging/kernel/update.sh @@ -57,5 +57,6 @@ verify echo "Verify succeed." get_git_info changelog_update "${VERSION}-${KATA_CONFIG_VERSION}" +ln -sfT "${SCRIPT_DIR}/../../kernel/patches" "${SCRIPT_DIR}/patches" generate_files "$SCRIPT_DIR" "${replace_list[@]}" build_pkg "${PROJECT_REPO}" diff --git a/obs-packaging/scripts/pkglib.sh b/obs-packaging/scripts/pkglib.sh index b00a5d354a..d1b9bfc8e5 100644 --- a/obs-packaging/scripts/pkglib.sh +++ b/obs-packaging/scripts/pkglib.sh @@ -337,7 +337,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 {} \;) n="1" rm -f debian.series for p in ${patches} ; do