gpg: add the 2.1.x series as a recognized GnuPG version

This commit is contained in:
JCount 2017-03-14 17:08:36 -04:00
parent 5c991f6941
commit 7058c089a6

View File

@ -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