diff options
Diffstat (limited to 'src/declare.c')
| -rw-r--r-- | src/declare.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/declare.c b/src/declare.c new file mode 100644 index 0000000..2ba42fb --- /dev/null +++ b/src/declare.c @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include "declare.h" +#include "create_pkg.h" +#include "update_pkg.h" +#include "lua_state.h" + +void declare() { + 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); + } +} |
