File tree 2 files changed +11
-6
lines changed
Cabal-syntax/src/Distribution/Utils
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -191,12 +191,7 @@ writeFileAtomic targetPath content = do
191
191
( \ (tmpPath, handle) -> do
192
192
LBS. hPut handle content
193
193
hClose handle
194
- Exception. catch
195
- (renameFile tmpPath targetPath)
196
- ( \ (_ :: Exception. SomeException ) -> do
197
- copyFile tmpPath targetPath
198
- removeFile tmpPath
199
- )
194
+ replaceFile tmpPath targetPath
200
195
)
201
196
202
197
-- ------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -12,3 +12,13 @@ package cabal-install
12
12
13
13
package Cabal
14
14
flags : +git-rev
15
+
16
+ source-repository-package
17
+ type : git
18
+ location : https://github.com/zlonast/win32.git
19
+ tag : 1805af5af1db5131b23b14edf0e2ba8c16e6710f
20
+
21
+ source-repository-package
22
+ type : git
23
+ location : https://github.com/zlonast/directory.git
24
+ tag : e67c28da0f06d82d1f19dfcc2e0fb51e45a8399b
You can’t perform that action at this time.
0 commit comments