diff options
| author | dacctal <dacctal@symlinx.net> | 2026-04-27 06:49:02 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-04-27 06:49:02 +0000 |
| commit | 30023fdce4f1667e84333094005f9a9e4a036939 (patch) | |
| tree | 723461c34e5501b05aec266bfa39dc2501a04439 | |
| parent | d44c76aed308adb94047c9f7d734dc88bd691d4f (diff) | |
| -rwxr-xr-x | pkgit | bin | 233600 -> 0 bytes | |||
| -rw-r--r-- | src/lua_state.cc | 8 |
2 files changed, 4 insertions, 4 deletions
| Binary files differ diff --git a/src/lua_state.cc b/src/lua_state.cc index 81f8d13..cbcf08f 100644 --- a/src/lua_state.cc +++ b/src/lua_state.cc @@ -62,15 +62,15 @@ void cache_install_directories() { void cache_repos() { if (!config_loaded) { - lua_getglobal(L, "repos"); + lua_getglobal(L, "repositories"); } else if (!lua_istable(L, -1)) { - lua_getglobal(L, "repos"); + lua_getglobal(L, "repositories"); } if (!lua_istable(L, -1)) { - std::cout << print_error << "lua variable 'repos' is not a table.\n"; + std::cout << print_error << "lua variable 'repositories' is not a table.\n"; return; - } + } lua_pushnil(L); while (lua_next(L, -2) != 0) { |
