buildbox 2.1.3.2 → 2.1.4.1
raw patch · 2 files changed
+12/−2 lines, 2 files
Files
- BuildBox/Command/File.hs +11/−1
- buildbox.cabal +1/−1
BuildBox/Command/File.hs view
@@ -154,8 +154,18 @@ = do tmp <- newTempFile io $ writeFile tmp str e <- io $ try $ renameFile tmp filePath++ -- renameFile may not be able to rename files across physical devices, + -- depending on the implementation. If renameFile fails then try copyFile. case (e :: Either SomeException ()) of- _ -> return ()+ Right _ + -> return ()++ Left _+ -> do io $ copyFile tmp filePath+ io $ removeFile tmp+ return ()+ -- | The file extension for an executable on the current system. exe :: String
buildbox.cabal view
@@ -1,5 +1,5 @@ Name: buildbox-Version: 2.1.3.2+Version: 2.1.4.1 License: BSD3 License-file: LICENSE Author: Ben Lippmeier