0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-14 17:13:04 +00:00
Files
Robert Kirkman 31e522eaeb fix(main/luarocks): wrap return "linux" with if true condition in sysdetect-no-proc.patch
- Fixes https://github.com/termux/termux-packages/issues/25320

- In Lua, unfortunately, **`return` statement before the end of a block is not allowed** and produces a syntax error at runtime. Placing the `return "linux"` statement at the beginnning of the function for easier rebasing of the patch is possible, but **only by placing it inside of an `if true` condition**.
  - https://www.lua.org/pil/4.4.html
  - "For syntactic reasons, a `break` or `return` can appear only as the last statement of a block"
2025-07-11 03:08:23 -05:00
..