From 426478cf0ed99cad17231f5ff615bc159a547802 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Thu, 1 Oct 2009 14:55:51 +0200 Subject: [PATCH] hardlink result files to temporary directory for packing if possible Signed-off-by: Gordon Hecker --- local/e2build.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/local/e2build.lua b/local/e2build.lua index b8034a0..f7304c5 100644 --- a/local/e2build.lua +++ b/local/e2build.lua @@ -711,9 +711,15 @@ function e2build.store_result(info, r, return_flags) e2lib.logf(3, "result file: %s", f) local s = string.format("%s/%s", rfilesdir, f) local d = "result/files" - rc, re = e2lib.cp(s, d) + rc, re = e2lib.ln(s, d) if not rc then - return false, e:cat(re) + e:cat(re) + e2lib.warnf("WOTHER", + "Creating hardlink failed. Falling back to copying.") + rc, re = e2lib.cp(s, d) + if not rc then + return false, e:cat(re) + end end end rc, re = e2lib.chdir("result") -- 2.39.5