summaryrefslogtreecommitdiff
path: root/src/Propellor/Bootstrap.hs
diff options
context:
space:
mode:
authorrsiddharth2018-10-21 14:40:44 -0400
committerJoey Hess2018-10-23 11:33:45 -0400
commitf80c7a800dd4379fadddf5968a8ad79207aee7c5 (patch)
treea282de348e34729d2fc6f2ca4cfd54a94e3649d8 /src/Propellor/Bootstrap.hs
parentfdb0a1872300fdd35e6dc8dab10104c17b320cb8 (diff)
src: Update Propellor.Bootstrap.cabalBuild.
Make the `cp` command openbsd and gnu/linux compatible. * src/Propellor/Bootstrap.hs (cabalBuild): Update function.
Diffstat (limited to 'src/Propellor/Bootstrap.hs')
-rw-r--r--src/Propellor/Bootstrap.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Propellor/Bootstrap.hs b/src/Propellor/Bootstrap.hs
index eba291c4..66e6e1ff 100644
--- a/src/Propellor/Bootstrap.hs
+++ b/src/Propellor/Bootstrap.hs
@@ -262,8 +262,8 @@ cabalBuild msys = do
-- a binary that is fully built. Also, avoid ever removing
-- or breaking the symlink.
--
- -- Need cp -a to make build timestamp checking work.
- unlessM (boolSystem "cp" [Param "-af", Param cabalbuiltbin, Param (tmpfor safetycopy)]) $
+ -- Need cp -pfRL to make build timestamp checking work.
+ unlessM (boolSystem "cp" [Param "-pfRL", Param cabalbuiltbin, Param (tmpfor safetycopy)]) $
error "cp of binary failed"
rename (tmpfor safetycopy) safetycopy
symlinkPropellorBin safetycopy