From bab0f206119fcb26201fc21c77d78c9420cb60ab Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 11 Dec 2015 12:46:03 -0400 Subject: comment --- .../comment_1_c9a24f6022fbe9063356df3ddbd767d6._comment | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/forum/Obnam.backupEncrypted_fails_if_gpg_key_is_already_in_keyring/comment_1_c9a24f6022fbe9063356df3ddbd767d6._comment (limited to 'doc/forum') diff --git a/doc/forum/Obnam.backupEncrypted_fails_if_gpg_key_is_already_in_keyring/comment_1_c9a24f6022fbe9063356df3ddbd767d6._comment b/doc/forum/Obnam.backupEncrypted_fails_if_gpg_key_is_already_in_keyring/comment_1_c9a24f6022fbe9063356df3ddbd767d6._comment new file mode 100644 index 00000000..c65cc5cd --- /dev/null +++ b/doc/forum/Obnam.backupEncrypted_fails_if_gpg_key_is_already_in_keyring/comment_1_c9a24f6022fbe9063356df3ddbd767d6._comment @@ -0,0 +1,16 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2015-12-11T16:41:30Z" + content=""" +More accurately, it's Gpg.keyImported that's failing, and this is because +it's implemented using a flagFile to remember if it's imported the gpg key +before. So the fix would be to implement: + + hasPrivKey :: GpgKeyId -> User -> IO Bool + + hasPubKey :: GpgKeyId -> User -> IO Bool + +And then Gpg.keyImported could use those with `check` to avoid redundant +import. +"""]] -- cgit v1.2.3