aboutsummaryrefslogtreecommitdiff
path: root/src/declare.c
blob: d01468a04a93be57b5e1a5a56c52355c9963475a (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);
    update_pkg(pkg);
  }
}