Add note about parsing GPG keys in binary format.

feature/documentation-builds-dirhtml
Isis Lovecruft 2013-03-06 19:09:06 +00:00 committed by Isis Lovecruft
parent 80cf654a7f
commit 7598c53a84
1 changed files with 3 additions and 0 deletions

View File

@ -1168,6 +1168,9 @@ class GPG(object):
>>> assert print1 in pubkeys.fingerprints
>>> assert print2 in pubkeys.fingerprints
"""
## xxx need way to validate that key_data is actually a valid GPG key
## it might be possible to use --list-packets and parse the output
result = self.result_map['import'](self)
logger.debug('import_keys: %r', key_data[:256])
data = _make_binary_stream(key_data, self.encoding)