summaryrefslogtreecommitdiff
path: root/tests/test_compression.py
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2023-04-28 17:06:00 -0700
committerMichał Górny <mgorny@gentoo.org>2023-04-29 07:42:23 +0200
commitfa0b0339c6e4dfde64fb6a6ce1cc68c3d071a889 (patch)
treed2ef34ceee0d82889106bac1fcef8090d9b038a1 /tests/test_compression.py
parentd3c35b865f1800df33b7976c5a7c79e939e213b5 (diff)
downloadgemato-fa0b0339c6e4dfde64fb6a6ce1cc68c3d071a889.tar.gz
gemato/openpgp: correctly handle duplicate keys vs unexpected keys
The old code path had a subtle behavior bug: if an expected key appeared twice in data from a WKD URL, it was then removed entirely. This happened at one point due to a GPG behavior: when using --export, if --keyring is passed twice, with different keyrings, but those keyrings both contain the key being exported (possibly with different signatures), then the export output will have duplicates of PGP packets present in both keyrings (e.g. UID). To avoid this, defer the removal of unexpected keys until the main import is completed. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Closes: https://github.com/projg2/gemato/pull/32 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests/test_compression.py')
0 files changed, 0 insertions, 0 deletions