Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1e628d1

Browse filesBrowse files
aduh95ruyadorno
authored andcommitted
tools: fix nghttp3 updater script
PR-URL: #56007 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent c907b2f commit 1e628d1
Copy full SHA for 1e628d1

File tree

Expand file treeCollapse file tree

1 file changed

+7
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-6
lines changed
Open diff view settings
Collapse file

‎tools/dep_updaters/update-nghttp3.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-nghttp3.sh
+7-6Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,17 @@ cleanup () {
4242
trap cleanup INT TERM EXIT
4343

4444
NGHTTP3_REF="v$NEW_VERSION"
45-
NGHTTP3_ZIP="nghttp3-$NEW_VERSION"
45+
ARCHIVE_BASENAME="nghttp3-${NEW_VERSION}"
4646

4747
cd "$WORKSPACE"
4848

4949
echo "Fetching nghttp3 source archive..."
50-
curl -sL -o "$NGHTTP3_ZIP.zip" "https://github.com/ngtcp2/nghttp3/archive/refs/tags/$NGHTTP3_REF.zip"
51-
log_and_verify_sha256sum "nghttp3" "$NGHTTP3_ZIP.zip"
52-
unzip "$NGHTTP3_ZIP.zip"
53-
rm "$NGHTTP3_ZIP.zip"
54-
mv "$NGHTTP3_ZIP" nghttp3
50+
curl -sL -o "$ARCHIVE_BASENAME.tar.xz" "https://github.com/ngtcp2/nghttp3/releases/download/${NGHTTP3_REF}/${ARCHIVE_BASENAME}.tar.xz"
51+
SHA256="$(curl -sL "https://github.com/ngtcp2/nghttp3/releases/download/${NGHTTP3_REF}/checksums.txt" | grep 'tar.xz$')"
52+
log_and_verify_sha256sum "nghttp3" "$ARCHIVE_BASENAME.tar.xz" "$SHA256"
53+
tar -xJf "$ARCHIVE_BASENAME.tar.xz"
54+
rm "$ARCHIVE_BASENAME.tar.xz"
55+
mv "$ARCHIVE_BASENAME" nghttp3
5556

5657
cd nghttp3
5758

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.