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
|
||||
|
||||
removeDirectoryForCleanup :: FilePath -> IO ()
|
||||
removeDirectoryForCleanup = removePathForcibly
|
||||
#if MIN_VERSION_directory(1,2,7)
|
||||
removeDirectoryForCleanup = removePathForcibly
|
||||
#else
|
||||
removeDirectoryForCleanup = removeDirectoryRecursive
|
||||
#endif
|
||||
|
||||
cleanup :: FilePath -> IO ()
|
||||
cleanup dir = whenM (doesDirectoryExist dir) $ do
|
||||
|
|
Loading…
Reference in a new issue