gpg: add the 2.1.x series as a recognized GnuPG version
This commit is contained in:
parent
5c991f6941
commit
7058c089a6
@ -5,7 +5,9 @@ class Gpg
|
|||||||
which_all(executable).detect do |gpg|
|
which_all(executable).detect do |gpg|
|
||||||
gpg_short_version = Utils.popen_read(gpg, "--version")[/\d\.\d/, 0]
|
gpg_short_version = Utils.popen_read(gpg, "--version")[/\d\.\d/, 0]
|
||||||
next unless gpg_short_version
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user