diff options
author | Joey Hess <joey@kitenet.net> | 2013-06-14 11:54:44 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-06-14 11:54:44 -0400 |
commit | 97f868aad62b53a12198c4b2146cbb9ab8c63dbc (patch) | |
tree | 8e08eaddb611d3fb3d8297fe58bcbe124873a468 /Utility | |
parent | b1c0d3fd4292b816f6212f62a3757ca6fd60c5b3 (diff) |
Android: Fix use of cp command to not try to use features present only on build system.
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/CopyFile.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/CopyFile.hs b/Utility/CopyFile.hs index bb0600aa9..9f10cb790 100644 --- a/Utility/CopyFile.hs +++ b/Utility/CopyFile.hs @@ -23,11 +23,15 @@ copyFileExternal src dest = do removeFile dest boolSystem "cp" $ params ++ [File src, File dest] where +#ifndef __ANDROID__ params = map snd $ filter fst [ (SysConfig.cp_reflink_auto, Param "--reflink=auto") , (SysConfig.cp_a, Param "-a") , (SysConfig.cp_p && not SysConfig.cp_a, Param "-p") ] +#else + params = [] +#endif {- Create a hard link if the filesystem allows it, and fall back to copying - the file. -} |