projects
/
project
/
opkg-lede.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
opkg: add opkg_read_config_files() to libopkg_test
[project/opkg-lede.git]
/
tests
/
libopkg_test.c
1
#include <opkg.h>
2
#include <stdlib.h>
3
4
int
5
main
(
int
argc
,
char
**
argv
)
6
{
7
opkg_t
*
opkg
;
8
int
err
;
9
10
opkg
=
opkg_new
();
11
12
opkg_set_option
(
opkg
,
"offline_root"
,
"/tmp/"
);
13
14
opkg_read_config_files
(
opkg
);
15
16
err
=
opkg_update_package_lists
(
opkg
);
17
18
printf
(
"opkg_update_package_lists returned %d
\n
"
,
err
);
19
20
opkg_free
(
opkg
);
21
}