aboutsummaryrefslogtreecommitdiff
path: root/src/mbpk-install.c
blob: 958837346055858323376180c57bce400a46ff88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include "libmbpk.h"

int main(void) {
	int res;
	printf("[mbpk_install] please note that mbpk_install is currently used as a test, and does not do what is said in the README. the proper wrapper binaries will be created once libmbpk is finished.\n");
	printf("[mbpk_install] calling mbpk_init()\n");
	res = mbpk_init();
	if (res != MBPK_OK) {
		fprintf(stderr, "mbpk init failed: %s\n", mbpk_strerr(res));
		return 1;
	}
	printf("[mbpk_install] calling mbpk_update_repositories()\n");
	res = mbpk_update_repositories();
	if (res != MBPK_OK) {
		fprintf(stderr, "mbpk repo failed: %s\n", mbpk_strerr(res));
	}
	mbpk_cleanup();
	return 0;
}