Skip to content

Commit

Permalink
script/install.sh: Initialize GPG directory before invoking it
Browse files Browse the repository at this point in the history
On some (older?) versions, --verify will fail if GNUPGHOME (~/.gnupg)
does not exist, even with --no-default-keyring, as that's where it
creates its temporary files.

Fixes issue 19434.
  • Loading branch information
CyberShadow committed Nov 25, 2018
1 parent a93c799 commit ce79494
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@ verify() {
if [ "$GPG" = x ]; then
return
fi
if ! $GPG --list-keys >/dev/null; then
fatal "Broken GPG installation"
fi
if ! $GPG -q --verify --keyring "$ROOT/d-keyring.gpg" --no-default-keyring <(fetch "${urls[@]}") "$path" 2>/dev/null; then
rm "$path" # delete invalid files
fatal "Invalid signature ${urls[0]}"
Expand Down

0 comments on commit ce79494

Please sign in to comment.