From 90388548d141613067e5af2f9cfb9c22a7009442 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Mon, 16 Sep 2024 12:20:53 +0200 Subject: [PATCH] .github: Handle missing app-emulation/hv-daemons LTS channel has no such package, so the action for finding the kernel update was failing. Fix it by updating the package only if it exists. --- .github/workflows/kernel-apply-patch.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/kernel-apply-patch.sh b/.github/workflows/kernel-apply-patch.sh index 14c2216624..8fdb9f90b7 100755 --- a/.github/workflows/kernel-apply-patch.sh +++ b/.github/workflows/kernel-apply-patch.sh @@ -32,10 +32,12 @@ for pkg in sources modules kernel; do popd done -# Update hyperv daemons ebuild soft-link to reflect new kernel version -find -D exec app-emulation/hv-daemons/ -type l -exec rm '{}' \; -ln -s app-emulation/hv-daemons/hv-daemons-9999.ebuild \ - app-emulation/hv-daemons/hv-daemons-${VERSION_NEW}.ebuild +if [[ -d app-emulation/hv-daemons ]]; then + # Update hyperv daemons ebuild soft-link to reflect new kernel version + find -D exec app-emulation/hv-daemons/ -type l -exec rm '{}' \; + ln -s app-emulation/hv-daemons/hv-daemons-9999.ebuild \ + app-emulation/hv-daemons/hv-daemons-${VERSION_NEW}.ebuild +fi # Leave ebuild repo section of SDK popd