Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[sb2] Fix can_accelerate_rpm under new lua. Fixes JB#54116
The (first) return value of os.execute has changed between lua 5.1
and 5.2. On old lua, successful execution returned 0, failure
(exit 1 in script) returned 256. On new lua, successful execution
returns true and failure false.
  • Loading branch information
vigejolla committed Jun 9, 2021
1 parent bd328e4 commit b85b940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scratchbox2/modes/obs-rpm-install/fs_rules.lua
Expand Up @@ -85,7 +85,7 @@ function can_accelerate_rpm()
]=]

local rc = os.execute(string.format(test, tools, target_root))
return rc == 0
return rc
end

if can_accelerate_rpm() then
Expand Down

0 comments on commit b85b940

Please sign in to comment.