Skip to content
Snippets Groups Projects
Commit d1be51d2 authored by JCount's avatar JCount Committed by GitHub
Browse files

Merge pull request #2343 from JCount/gpg-requirement-add-2.1-series

gpg: add GnuPG series 2.1.x to supported versions
parents f8cf5066 ca303f61
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,9 @@ class Gpg
which_all(executable).detect do |gpg|
gpg_short_version = Utils.popen_read(gpg, "--version")[/\d\.\d/, 0]
next unless gpg_short_version
Version.create(gpg_short_version.to_s) == Version.create("2.0")
gpg_version = Version.create(gpg_short_version.to_s)
gpg_version == Version.create("2.0") ||
gpg_version == Version.create("2.1")
end
end
......
......@@ -3,10 +3,10 @@ require "gpg"
class GPG2Requirement < Requirement
fatal true
default_formula "gnupg2"
default_formula "gnupg"
# MacGPG2/GPGTools installs GnuPG 2.0.x as a vanilla `gpg` symlink
# pointing to `gpg2`, as do we. Ensure we're actually using a 2.0 `gpg`.
# Temporarily, only support 2.0.x rather than the 2.1.x "modern" series.
# Support both the 2.0.x "stable" and 2.1.x "modern" series.
satisfy(build_env: false) { Gpg.gpg2 || Gpg.gpg }
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment