diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-28 20:43:55 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-28 20:43:55 +0000 |
| commit | 4b9bdde6d7fefbf988160d26b376d330de48c5bd (patch) | |
| tree | c07bbbbad248b5db02cf6c2fe6b912c95bed67f0 /src | |
| parent | bfddd2a02dfc9e0eb0d45495afb92f0294348fd3 (diff) | |
bldit idk
Diffstat (limited to 'src')
| -rw-r--r-- | src/lua_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua_state.c b/src/lua_state.c index 1a2de06..49672e8 100644 --- a/src/lua_state.c +++ b/src/lua_state.c @@ -129,6 +129,7 @@ bool repo_build(const char *repository) { lua_pop(L, 1); } } + lua_pop(L, 1); lua_getfield(L, -1, "build"); if (!lua_isfunction(L, -1)) { @@ -189,8 +190,7 @@ bool bldit(const char *target) { luaL_openlibs(B); if (luaL_loadfile(B, "bldit.lua") || lua_pcall(B, 0, 0, 0)) { - printf("%scannot run bldit script: %s\n", print_warning, - lua_tostring(B, -1)); + printf("%scannot run bldit script: %s\n", print_warning, lua_tostring(B, -1)); lua_close(B); return false; } @@ -211,7 +211,7 @@ bool bldit(const char *target) { lua_getglobal(B, "global_dependencies"); if (!lua_istable(B, -1)) { - printf("%sbldit variable 'package_version' is not a table.\n", print_warning); + printf("%sbldit variable 'global_dependencies' is not a table.\n", print_warning); } else { printf("%sbldit variable 'global_dependencies' used successfully.\n", print_pkgit); Repo *repo; |
