From: Gordon Hecker Date: Thu, 2 Apr 2009 12:29:15 +0000 (+0200) Subject: make detect_tool script executable in collect_project result X-Git-Tag: e2factory-2.3.1pre1~44 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=246aa2366acdf589974bf9b13c949451ff9af5c7;p=e2factory.git make detect_tool script executable in collect_project result Signed-off-by: Gordon Hecker --- 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