Skip to content

Commit

Permalink
Allow +bpo kernels
Browse files Browse the repository at this point in the history
Seems 6.10 is now being marked `+bpo`.

Improve error handling while I'm here.
  • Loading branch information
tamird committed Dec 30, 2024
1 parent df053f0 commit f26ccde
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/scripts/download_kernel_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ readonly URLS
# Find the latest revision of each kernel version.
FILES=()
for VERSION in "${VERSIONS[@]}"; do
while read -r line; do
FILES+=("$line")
done <<< "$(
printf '%s\n' "$URLS" \
| grep -E "linux-image-${VERSION//./\\.}\\.[0-9]+(-[0-9]+)?-cloud-${ARCHITECTURE}-unsigned_.*\\.deb" \
| sort -V \
| tail -n1
)"
REGEX="linux-image-${VERSION//./\\.}\\.[0-9]+(-[0-9]+)?(\+bpo)?-cloud-${ARCHITECTURE}-unsigned_.*\\.deb"
match=$(printf '%s\n' "$URLS" | grep -E "$REGEX" | sort -V | tail -n1) || {
printf '%s\nVERSION=%s\nREGEX=%s\n' "$URLS" "$VERSION" "$REGEX" >&2
exit 1
}
FILES+=("$match")
done

# TODO(https://github.com/curl/curl/issues/15729): restore --parallel here if and when it properly
Expand Down

0 comments on commit f26ccde

Please sign in to comment.