propellor

propellor config for hosts.
git clone git://git.ricketyspace.net/propellor.git
Log | Files | Refs | LICENSE

commit e66c33c5b39d341edb37cdeecd5fa746a3221f4d
parent 7a45b0ca4957a823e1b0b1705acc69528b1ed5d2
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 21 Oct 2018 14:40:44 -0400

src: Update Propellor.Bootstrap.cabalBuild.

Make the `cp` command openbsd and gnu/linux compatible.

* src/Propellor/Bootstrap.hs (cabalBuild): Update function.

Diffstat:
src/Propellor/Bootstrap.hs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Propellor/Bootstrap.hs b/src/Propellor/Bootstrap.hs @@ -263,8 +263,8 @@ cabalBuild msys = do -- a binary that is fully built. Also, avoid ever removing -- or breaking the symlink. -- - -- Need cp -a to make build timestamp checking work. - unlessM (boolSystem "cp" [Param "-af", Param cabalbuiltbin, Param (tmpfor safetycopy)]) $ + -- Need cp -pfRL to make build timestamp checking work. + unlessM (boolSystem "cp" [Param "-pfRL", Param cabalbuiltbin, Param (tmpfor safetycopy)]) $ error "cp of binary failed" rename (tmpfor safetycopy) safetycopy symlinkPropellorBin safetycopy