Fix invocation of RepoTool.bootstrapOrUpdate

This commit is contained in:
Andrea Bedini 2022-03-11 17:04:13 +08:00
parent 03c7683c13
commit 2af2c24b1f
No known key found for this signature in database
GPG Key ID: EE8DEB94262733BE

View File

@ -16,13 +16,13 @@ updateRepo :: FilePath -> FilePath -> IO ()
updateRepo keysDir repoDir = do
keysLoc <- KeysLoc <$> makeAbsolute (fromFilePath keysDir)
repoLoc <- RepoLoc <$> makeAbsolute (fromFilePath repoDir)
RepoTool.bootstrapOrUpdate (globalOpts $ Update keysLoc repoLoc) keysLoc repoLoc True
RepoTool.bootstrapOrUpdate (globalOpts $ Update keysLoc repoLoc) keysLoc repoLoc False
bootstrapRepo :: FilePath -> FilePath -> IO ()
bootstrapRepo keysDir repoDir = do
keysLoc <- KeysLoc <$> makeAbsolute (fromFilePath keysDir)
repoLoc <- RepoLoc <$> makeAbsolute (fromFilePath repoDir)
RepoTool.bootstrapOrUpdate (globalOpts $ Bootstrap keysLoc repoLoc) keysLoc repoLoc False
RepoTool.bootstrapOrUpdate (globalOpts $ Bootstrap keysLoc repoLoc) keysLoc repoLoc True
createKeys :: FilePath -> IO ()
createKeys keysDir = do