From aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sun, 24 May 2026 10:23:38 +0000 Subject: c rewrite --- src/update_all.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/update_all.c (limited to 'src/update_all.c') diff --git a/src/update_all.c b/src/update_all.c new file mode 100644 index 0000000..1018f65 --- /dev/null +++ b/src/update_all.c @@ -0,0 +1,17 @@ +#include +#include +#include + +#include "update_all.h" +#include "create_pkg.h" +#include "update_pkg.h" +#include "lua_state.h" + +void update_all() { + init_lua_state(); + cache_repos(); + for (size_t i = 0; i < cached_repos_count; i++) { + Pkg pkg = create_pkg(cached_repos[i].source_value, "default"); + update_pkg(pkg); + } +} \ No newline at end of file -- cgit v1.2.3