.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.
This commit is contained in:
Krzesimir Nowak 2024-09-16 12:20:53 +02:00
parent e46b859e0e
commit 90388548d1

View File

@ -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