check if gcrypt is installed
This commit is contained in:
parent
735ed3b822
commit
6b24730179
1 changed files with 3 additions and 3 deletions
|
@ -364,9 +364,9 @@ getMakeRsyncNetSharedR sshdata = makeSshRepo True setupGroup sshdata
|
|||
|
||||
{- Make a gcrypt special remote on rsync.net. -}
|
||||
getMakeRsyncNetGCryptR :: SshData -> RepoKey -> Handler Html
|
||||
getMakeRsyncNetGCryptR sshdata NoRepoKey = withNewSecretKey $ \keyid ->
|
||||
getMakeRsyncNetGCryptR sshdata (RepoKey keyid)
|
||||
getMakeRsyncNetGCryptR sshdata (RepoKey keyid) = do
|
||||
getMakeRsyncNetGCryptR sshdata NoRepoKey = whenGcryptInstalled $
|
||||
withNewSecretKey $ getMakeRsyncNetGCryptR sshdata . RepoKey
|
||||
getMakeRsyncNetGCryptR sshdata (RepoKey keyid) = whenGcryptInstalled $ do
|
||||
sshSetup [sshhost, gitinit] [] $ do
|
||||
r <- liftAnnex $ addRemote $
|
||||
makeGCryptRemote (sshRepoName sshdata) (sshUrl True sshdata) keyid
|
||||
|
|
Loading…
Add table
Reference in a new issue