Skip to content

Commit c818aa9

Browse files
committed
fixup! tools: switch to PGP and SHA256 in ICU updater
1 parent ec420a4 commit c818aa9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎tools/dep_updaters/update-icu.sh‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ curl -sfL -o "$NEW_VERSION_TGZ_PATH" "$NEW_VERSION_TGZ_URL"
5555
KEYRING="$BASE_DIR/tools/dep_updaters/icu.kbx"
5656
if [ "$1" = "--update-keys" ]; then
5757
KEYS_FILE="$WORKSPACE/KEYS"
58+
GNUPGHOME="$WORKSPACE/gnupg"
59+
mkdir -m 700 "$GNUPGHOME"
5860
echo "Fetching the upstream KEYS file"
59-
curl -sSLfo "$KEYS_FILE" https://github.com/unicode-org/icu/raw/refs/tags/release-${NEW_VERSION}/KEYS
60-
rm -f "$KEYRING"
61-
gpg --no-default-keyring --keyring "$KEYRING" --batch --import --import-options import-minimal < "$KEYS_FILE"
61+
curl -sSLfo "$KEYS_FILE" "https://github.com/unicode-org/icu/raw/refs/tags/release-${NEW_VERSION}/KEYS"
62+
GNUPGHOME="$GNUPGHOME" gpg --no-default-keyring --keyring "$WORKSPACE/icu.kbx" --batch --import --import-options import-minimal < "$KEYS_FILE"
63+
mv "$WORKSPACE/icu.kbx" "$KEYRING"
6264
fi
6365

6466
echo "Verifying PGP signature"

0 commit comments

Comments
 (0)