diff options
author | 2013-11-12 21:05:04 -0400 | |
---|---|---|
committer | 2013-11-12 21:05:04 -0400 | |
commit | 77829e3233e74a97d9b7f933b6ba8d067c0fce5a (patch) | |
tree | e323fe3e251093d234f84a79372a4d314244cd4a /Command/Add.hs | |
parent | f8887515d07aa4712083e47eb3e49d98eb41331e (diff) |
avoid using Utility.Touch without WITH_CLIBS
Diffstat (limited to 'Command/Add.hs')
-rw-r--r-- | Command/Add.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Command/Add.hs b/Command/Add.hs index 90a9f561b..9f1beb28a 100644 --- a/Command/Add.hs +++ b/Command/Add.hs @@ -23,9 +23,11 @@ import Annex.Perms import Annex.Link import qualified Annex import qualified Annex.Queue +#ifdef WITH_CLIBS #ifndef __ANDROID__ import Utility.Touch #endif +#endif import Config import Utility.InodeCache import Annex.FileMatcher @@ -211,6 +213,7 @@ link file key mcache = flip catchAnnex (undo file key) $ do l <- inRepo $ gitAnnexLink file key replaceFile file $ makeAnnexLink l +#ifdef WITH_CLIBS #ifndef __ANDROID__ -- touch symlink to have same time as the original file, -- as provided in the InodeCache @@ -218,6 +221,7 @@ link file key mcache = flip catchAnnex (undo file key) $ do Just c -> liftIO $ touch file (TimeSpec $ inodeCacheToMtime c) False Nothing -> noop #endif +#endif return l |