diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-02 08:38:13 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-02 08:38:13 +0000 |
| commit | 44eb727dc537403be092326639a5b7c6d7182146 (patch) | |
| tree | 1459603e69496400c22f53dcec67ec2c3348400a /src/setup_repo.cc | |
| parent | c555d4c25b5526c37e94ee2c593f34bdf28b159e (diff) | |
fixed like half of everything idk, you can install stuff now
Diffstat (limited to 'src/setup_repo.cc')
| -rw-r--r-- | src/setup_repo.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/setup_repo.cc b/src/setup_repo.cc deleted file mode 100644 index bc15d1f..0000000 --- a/src/setup_repo.cc +++ /dev/null @@ -1,29 +0,0 @@ -#include <iostream> -#include "lua_state.hh" -#include "setup_repo.hh" -#include "ensure_repo.hh" -#include "vars.hh" - -void setup_repo() { - ensure_repo(); - - init_lua_state(); - lua_State *L = get_lua_state(); - - lua_getglobal(L, "repos"); - - if (!lua_istable(L, -1)) { - std::cout << print_error << "lua variable 'repos' is not a table.\n"; - } - - lua_pushnil(L); - - while (lua_next(L, -2) != 0) { - const char *key = lua_tostring(L, -2); - const char *value = lua_tostring(L, -1); - - repos[key] = value; - - lua_pop(L, 1); - } -}
\ No newline at end of file |
