summaryrefslogtreecommitdiff
path: root/doc/forum/Obnam.backupEncrypted_fails_if_gpg_key_is_already_in_keyring
diff options
context:
space:
mode:
authorJoey Hess2015-12-11 12:46:03 -0400
committerJoey Hess2015-12-11 12:46:03 -0400
commitbab0f206119fcb26201fc21c77d78c9420cb60ab (patch)
treebdbfd38f43b238ee86e4a121dc1563e64329e637 /doc/forum/Obnam.backupEncrypted_fails_if_gpg_key_is_already_in_keyring
parent516bb6590ca3de4922349e39b3590c69e9b6e3d0 (diff)
comment
Diffstat (limited to 'doc/forum/Obnam.backupEncrypted_fails_if_gpg_key_is_already_in_keyring')
-rw-r--r--doc/forum/Obnam.backupEncrypted_fails_if_gpg_key_is_already_in_keyring/comment_1_c9a24f6022fbe9063356df3ddbd767d6._comment16
1 files changed, 16 insertions, 0 deletions
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.
+"""]]