aboutsummaryrefslogtreecommitdiff
path: root/src/declare.c
blob: 2ba42fbb6df2c1fca419b08ae4cf07246064b63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
  }
}