summaryrefslogtreecommitdiff
path: root/doc/forum/Obnam.backupEncrypted_fails_if_gpg_key_is_already_in_keyring/comment_1_c9a24f6022fbe9063356df3ddbd767d6._comment
blob: c65cc5cd7eb718363e3795492de6b47ac472c9ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.
"""]]