From 4eae71e4b39d1970e9a7b0bcc6506a3709276078 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Tue, 3 Jul 2018 13:43:21 -0500 Subject: [PATCH] pkgs: kernel: add symlink to patches. Packaging scripts search for patches in a directory called 'patches'. We store the kernel patches in a diferent place to make easy to mantain them. Lets do a symlink to allow the automation find the patches. Signed-off-by: Jose Carlos Venegas Munoz --- obs-packaging/kernel/update.sh | 1 + obs-packaging/scripts/pkglib.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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