]> git.e2factory.org Git - e2factory.git/commitdiff
make detect_tool script executable in collect_project result
authorGordon Hecker <gh@emlix.com>
Thu, 2 Apr 2009 12:29:15 +0000 (14:29 +0200)
committerGordon Hecker <gh@emlix.com>
Thu, 2 Apr 2009 12:29:15 +0000 (14:29 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/e2build.lua

index a602c69e0eb02c81fad237ee777e737d0974a4a1..5057160e041084c709e813fd037f43e6c912a727 100644 (file)
@@ -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