File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,19 @@ cleanup () {
42
42
trap cleanup INT TERM EXIT
43
43
44
44
NGHTTP2_REF=" v$NEW_VERSION "
45
- NGHTTP2_TARBALL=" nghttp2-$NEW_VERSION .tar.gz "
45
+ NGHTTP2_TARBALL=" nghttp2-$NEW_VERSION .tar.xz "
46
46
47
47
cd " $WORKSPACE "
48
48
49
49
echo " Fetching nghttp2 source archive"
50
50
curl -sL -o " $NGHTTP2_TARBALL " " https://github.com/nghttp2/nghttp2/releases/download/$NGHTTP2_REF /$NGHTTP2_TARBALL "
51
51
52
- DEPOSITED_CHECKSUM=$( curl -sL " https://github.com/nghttp2/nghttp2/releases/download/$NGHTTP2_REF /checksums.txt" | grep " $NGHTTP2_TARBALL " )
52
+ echo " Verifying PGP signature"
53
+ curl -sL " https://github.com/nghttp2/nghttp2/releases/download/${NGHTTP2_REF} /${NGHTTP2_TARBALL} .asc" \
54
+ | gpgv --keyring " $BASE_DIR /tools/dep_updaters/nghttp.kbx" " $NGHTTP2_TARBALL "
53
55
54
- log_and_verify_sha256sum " nghttp2" " $NGHTTP2_TARBALL " " $DEPOSITED_CHECKSUM "
55
-
56
- gzip -dc " $NGHTTP2_TARBALL " | tar xf -
56
+ echo " Unpacking archive"
57
+ tar xJf " $NGHTTP2_TARBALL "
57
58
rm " $NGHTTP2_TARBALL "
58
59
mv " nghttp2-$NEW_VERSION " nghttp2
59
60
Original file line number Diff line number Diff line change @@ -48,8 +48,12 @@ cd "$WORKSPACE"
48
48
49
49
echo " Fetching nghttp3 source archive..."
50
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 "
51
+
52
+ echo " Verifying PGP signature..."
53
+ curl -sL " https://github.com/ngtcp2/nghttp3/releases/download/${NGHTTP3_REF} /${ARCHIVE_BASENAME} .tar.xz.asc" \
54
+ | gpgv --keyring " $BASE_DIR /tools/dep_updaters/nghttp.kbx" - " $ARCHIVE_BASENAME .tar.xz"
55
+
56
+ echo " Unpacking archive..."
53
57
tar -xJf " $ARCHIVE_BASENAME .tar.xz"
54
58
rm " $ARCHIVE_BASENAME .tar.xz"
55
59
mv " $ARCHIVE_BASENAME " nghttp3
You can’t perform that action at this time.
0 commit comments