1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-20 01:50:04 +00:00

not use pinmode if gpg version < 2.1

This commit is contained in:
Adrien Waksberg 2017-04-04 23:50:38 +02:00
parent 7ce4ba721b
commit d8df357993

View file

@ -339,7 +339,7 @@ module MPW
return nil if data.to_s.empty?
password =
if /^1\.[0-9.]+$/ =~ GPGME::Engine.info.first.version || @pinmode
if /^(1\.[0-9.]+|2\.0)(\.[0-9]+)?/ =~ GPGME::Engine.info.first.version || @pinmode
{ password: @gpg_pass }
else
{ password: @gpg_pass,