From ef6ddb283250b3e534a32ae9eb1d70b2138b518c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 25 Sep 2015 09:29:38 -0400 Subject: propellor spin --- src/Propellor/Bootstrap.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Propellor/Bootstrap.hs') 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) -- cgit v1.3-2-g0d8e