keep old directory support
Still needed for i386ancient build.
This commit is contained in:
parent
ae2abaaf38
commit
47d0ea71e6
1 changed files with 5 additions and 1 deletions
|
@ -263,7 +263,11 @@ isolateGitConfig a = Utility.Tmp.Dir.withTmpDir "testhome" $ \tmphome -> do
|
||||||
a
|
a
|
||||||
|
|
||||||
removeDirectoryForCleanup :: FilePath -> IO ()
|
removeDirectoryForCleanup :: FilePath -> IO ()
|
||||||
removeDirectoryForCleanup = removePathForcibly
|
#if MIN_VERSION_directory(1,2,7)
|
||||||
|
removeDirectoryForCleanup = removePathForcibly
|
||||||
|
#else
|
||||||
|
removeDirectoryForCleanup = removeDirectoryRecursive
|
||||||
|
#endif
|
||||||
|
|
||||||
cleanup :: FilePath -> IO ()
|
cleanup :: FilePath -> IO ()
|
||||||
cleanup dir = whenM (doesDirectoryExist dir) $ do
|
cleanup dir = whenM (doesDirectoryExist dir) $ do
|
||||||
|
|
Loading…
Add table
Reference in a new issue