From 246aa2366acdf589974bf9b13c949451ff9af5c7 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Thu, 2 Apr 2009 14:29:15 +0200 Subject: [PATCH] make detect_tool script executable in collect_project result Signed-off-by: Gordon Hecker --- local/e2build.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/local/e2build.lua b/local/e2build.lua index a602c69..5057160 100644 --- a/local/e2build.lua +++ b/local/e2build.lua @@ -1077,10 +1077,16 @@ function e2build.collect_project(info, r, return_flags) return false, e:cat(re) end end - local script = string.format("%s/buildall.sh", destdir) - local rc, re = e2lib.chmod("755", script) - if not rc then - return false, e:cat(re) + local executables = { + "buildall.sh", + "detect_tool", + } + for _,f in ipairs(executables) do + local x = string.format("%s/%s", destdir, f) + local rc, re = e2lib.chmod("755", x) + if not rc then + return false, e:cat(re) + end end return true, nil end -- 2.39.5