From 39db3c24af496ac573629503fc767ca3f1372f3f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 30 Sep 2015 13:36:56 -0400 Subject: force copy when destination exists --- src/Propellor/Bootstrap.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Propellor/Bootstrap.hs') 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) -- cgit v1.2.3