projects
/
project
/
opkg-lede.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9146d0c84d5090d0656a22ac6c53dd8b27a9b8ff
[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
err
=
opkg_update_package_lists
(
opkg
);
15
16
printf
(
"opkg_update_package_lists returned %d
\n
"
,
err
);
17
18
opkg_free
(
opkg
);
19
}