diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-24 10:23:38 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-24 10:23:38 +0000 |
| commit | aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 (patch) | |
| tree | 62f97b4c5acfdb98003568466f878fbd3d6b9dfb /src/update_all.c | |
| parent | 83d471f2c1d1b1fa6be51f41e4f1c36ab19d7094 (diff) | |
c rewrite
Diffstat (limited to 'src/update_all.c')
| -rw-r--r-- | src/update_all.c | 17 |
1 files changed, 17 insertions, 0 deletions
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 <stdio.h> +#include <stdlib.h> +#include <string.h> + +#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 |
