mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
tools: fix update-nghttp2 signature verification
Detached signatures must be passed to `gpgv` as a filename before the datafile (which can be stdin but the detached signature file cannot be stdin and cannot be piped in). PR-URL: https://github.com/nodejs/node/pull/61035 Refs: https://github.com/nodejs/node/pull/60113 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
@@ -50,12 +50,13 @@ echo "Fetching nghttp2 source archive"
|
||||
curl -sL -o "$NGHTTP2_TARBALL" "https://github.com/nghttp2/nghttp2/releases/download/$NGHTTP2_REF/$NGHTTP2_TARBALL"
|
||||
|
||||
echo "Verifying PGP signature"
|
||||
curl -sL "https://github.com/nghttp2/nghttp2/releases/download/${NGHTTP2_REF}/${NGHTTP2_TARBALL}.asc" \
|
||||
| gpgv --keyring "$BASE_DIR/tools/dep_updaters/nghttp.kbx" "$NGHTTP2_TARBALL"
|
||||
curl -sL -o "${NGHTTP2_TARBALL}.asc" "https://github.com/nghttp2/nghttp2/releases/download/${NGHTTP2_REF}/${NGHTTP2_TARBALL}.asc"
|
||||
gpgv --keyring "$BASE_DIR/tools/dep_updaters/nghttp.kbx" "${NGHTTP2_TARBALL}.asc" "${NGHTTP2_TARBALL}"
|
||||
|
||||
echo "Unpacking archive"
|
||||
tar xJf "$NGHTTP2_TARBALL"
|
||||
rm "$NGHTTP2_TARBALL"
|
||||
rm "${NGHTTP2_TARBALL}.asc"
|
||||
mv "nghttp2-$NEW_VERSION" nghttp2
|
||||
|
||||
echo "Removing everything, except lib/ and COPYING"
|
||||
|
||||
Reference in New Issue
Block a user