[pacman-dev] [PATCH] 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
On 09/07/11 12:40, Dave Reisner wrote:
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
Signed-off-by: Allan Pulled onto my working branch with the rest of the pacman-key stuff. Allan
participants (2)
-
Allan McRae
-
Dave Reisner