Commit f3bdc483 authored by Valentin Reis's avatar Valentin Reis

Dereference links when copying.

parent b15f0e25
Pipeline #5892 passed with stages
in 30 seconds
......@@ -423,10 +423,11 @@ wrap nixCommand target sa@ArgsCommon {..} = do
ExitFailure _ -> copyFailure (toS tmpDir) >> die "build failed."
where
copySuccess source = do
runProcessVerbose verbosity "cp" ["-r", source, "./result"] []
runProcessVerbose verbosity "cp" ["-Lr", source, "./result"] []
runProcessVerbose verbosity "chmod" ["-R", "+w", "./result"] []
copyFailure source =
runProcessVerbose verbosity "cp" ["-r", source, "./nixtmpdir"] []
copyFailure source = do
runProcessVerbose verbosity "cp" ["-Lr", source, "./nixtmpdir"] []
runProcessVerbose verbosity "chmod" ["-R", "+w", "./nixtmpdir"] []
nixc = toCommand nixCommand
arglist =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment