generalized safeWriteFile to viaTmp
This commit is contained in:
parent
d72fb5acc2
commit
2cda9d0a0f
4 changed files with 9 additions and 8 deletions
|
@ -86,7 +86,7 @@ checkRemoteUnused' r = do
|
|||
writeUnusedFile :: FilePath -> [(Int, Key)] -> Annex ()
|
||||
writeUnusedFile prefix l = do
|
||||
g <- Annex.gitRepo
|
||||
liftIO $ safeWriteFile (gitAnnexUnusedLog prefix g) $
|
||||
liftIO $ viaTmp writeFile (gitAnnexUnusedLog prefix g) $
|
||||
unlines $ map (\(n, k) -> show n ++ " " ++ show k) l
|
||||
|
||||
table :: [(Int, Key)] -> [String]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue