summaryrefslogtreecommitdiff
path: root/src/Propellor/Bootstrap.hs
diff options
context:
space:
mode:
authorJoey Hess2015-09-30 13:36:56 -0400
committerJoey Hess2015-09-30 13:36:56 -0400
commit39db3c24af496ac573629503fc767ca3f1372f3f (patch)
treeaff44e888d12f3eb61e9ca5748746a93c8f6b8a9 /src/Propellor/Bootstrap.hs
parent451b89ef8b4609f3cce417f2be28f266c3f4be41 (diff)
force copy when destination exists
Diffstat (limited to 'src/Propellor/Bootstrap.hs')
-rw-r--r--src/Propellor/Bootstrap.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Bootstrap.hs b/src/Propellor/Bootstrap.hs
index 089def51..0cb37092 100644
--- a/src/Propellor/Bootstrap.hs
+++ b/src/Propellor/Bootstrap.hs
@@ -111,7 +111,7 @@ build = catchBoolIO $ do
-- or breaking the symlink.
--
-- Need cp -a to make build timestamp checking work.
- unlessM (boolSystem "cp" [Param "-a", Param cabalbuiltbin, Param (tmpfor safetycopy)]) $
+ unlessM (boolSystem "cp" [Param "-af", Param cabalbuiltbin, Param (tmpfor safetycopy)]) $
error "cp of binary failed"
rename (tmpfor safetycopy) safetycopy
createSymbolicLink safetycopy (tmpfor dest)