summaryrefslogtreecommitdiff
path: root/src/Propellor/Bootstrap.hs
diff options
context:
space:
mode:
authorJoey Hess2015-09-25 09:29:38 -0400
committerJoey Hess2015-09-25 09:29:38 -0400
commitef6ddb283250b3e534a32ae9eb1d70b2138b518c (patch)
tree0f5275319464899e5380444b3a3f632e6148ab45 /src/Propellor/Bootstrap.hs
parent5964789b7c8ee79784c2901a367937ad6274e105 (diff)
propellor spin
Diffstat (limited to 'src/Propellor/Bootstrap.hs')
-rw-r--r--src/Propellor/Bootstrap.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Propellor/Bootstrap.hs b/src/Propellor/Bootstrap.hs
index b2cf5609..089def51 100644
--- a/src/Propellor/Bootstrap.hs
+++ b/src/Propellor/Bootstrap.hs
@@ -109,7 +109,9 @@ build = catchBoolIO $ do
-- This ensures that the propellor symlink only ever points at
-- a binary that is fully built. Also, avoid ever removing
-- or breaking the symlink.
- unlessM (boolSystem "cp" [Param cabalbuiltbin, Param (tmpfor safetycopy)]) $
+ --
+ -- Need cp -a to make build timestamp checking work.
+ unlessM (boolSystem "cp" [Param "-a", Param cabalbuiltbin, Param (tmpfor safetycopy)]) $
error "cp of binary failed"
rename (tmpfor safetycopy) safetycopy
createSymbolicLink safetycopy (tmpfor dest)