pacman-key: refactor get_from
commitdf7b390514efa0ae6b84e8404806dee63d3524ad
authorDave Reisner <d@falconindy.com>
Sat, 9 Jul 2011 02:40:25 +0000 (8 22:40 -0400)
committerAllan McRae <allan@archlinux.org>
Tue, 19 Jul 2011 00:27:54 +0000 (19 10:27 +1000)
treefd5492f555226623cdd901892571668c73788d76
parent0e85c4989b7a7a20978ba0dcc7b56f0f1853b974
pacman-key: refactor get_from

This function had a variety of pitfalls, including the inability to
successfully find a key=value pair where no whitespace surrounded the
equals sign. Make it more robust by splitting the line on the equals
itself, and performing whitespace trimming on the resulting key/value
pair.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
scripts/pacman-key.sh.in