projects
/
git-annex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae2abaa
)
keep old directory support
author
Joey Hess
<joeyh@joeyh.name>
Tue, 19 Apr 2022 17:28:02 +0000
(13:28 -0400)
committer
Joey Hess
<joeyh@joeyh.name>
Tue, 19 Apr 2022 17:28:02 +0000
(13:28 -0400)
Still needed for i386ancient build.
Test/Framework.hs
patch
|
blob
|
history
diff --git
a/Test/Framework.hs
b/Test/Framework.hs
index 8036e3b74dcca948f330c60b5f845a7ce1ca4f46..3927a55039dd8f6cd469b777c5976e31ad1a1094 100644
(file)
--- a/
Test/Framework.hs
+++ b/
Test/Framework.hs
@@
-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