build fix

This commit is contained in:
Joey Hess 2013-02-15 13:48:25 -04:00
parent 9e69fca5bb
commit 96613e85a9

View file

@ -221,7 +221,9 @@ rsyncSend o callback k canrename src = withRsyncScratchDir $ \tmp -> do
let dest = tmp </> Prelude.head (keyPaths k)
liftIO $ createDirectoryIfMissing True $ parentDir dest
ok <- if canrename
then liftIO $ renameFile src dest
then do
liftIO $ renameFile src dest
return True
else ifM crippledFileSystem
( liftIO $ copyFileExternal src dest
, do