aboutsummaryrefslogtreecommitdiff
path: root/src/lua_state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_state.cc')
-rw-r--r--src/lua_state.cc8
1 files changed, 4 insertions, 4 deletions
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) {