diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-09-25 09:29:38 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-09-25 09:29:38 -0400 |
| commit | ef6ddb283250b3e534a32ae9eb1d70b2138b518c (patch) | |
| tree | 0f5275319464899e5380444b3a3f632e6148ab45 | |
| parent | 5964789b7c8ee79784c2901a367937ad6274e105 (diff) | |
propellor spin
| -rw-r--r-- | src/Propellor/Bootstrap.hs | 4 |
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) |
