keep old directory support

Still needed for i386ancient build.
This commit is contained in:
Joey Hess 2022-04-19 13:28:02 -04:00
parent ae2abaaf38
commit 47d0ea71e6
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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