Improve gpg secret key list parser to deal with changes in gpg 2.1.15. Fixes key...
authorJoey Hess <joeyh@joeyh.name>
Wed, 14 Sep 2016 17:30:50 +0000 (13:30 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 14 Sep 2016 17:31:00 +0000 (13:31 -0400)
commitec3558fb79223cbaa391fd3e991f2b4bbdc5412f
tree281e35e86bd6ac64a56406c2c006a874d532dd0f
parentddc1b46fc298399eefbbbeb1f5936a807ab864ae
Improve gpg secret key list parser to deal with changes in gpg 2.1.15. Fixes key name display in webapp.

gpg 2.1.15 (or so) seems to have added some new fields to the --with-colons
--list-secret-keys output. These include "fpr" and "grp", and come before
the "uid" line. So, the parser was giving up before it saw the name. Fix by
continuing to look for the uid line until the next "sec" line.

This commit was sponsored by Ole-Morten,Duesund on Patreon.
CHANGELOG
Utility/Gpg.hs