From: ticktock35 Date: Mon, 15 Dec 2008 05:10:21 +0000 (+0000) Subject: opkg: add update packages lists call to libopkg_test X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=commitdiff_plain;h=c4e896ceda14cb1515625b020c705b521f0e306d opkg: add update packages lists call to libopkg_test git-svn-id: http://opkg.googlecode.com/svn/trunk@76 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/tests/libopkg_test.c b/tests/libopkg_test.c index b834a7f..9146d0c 100644 --- a/tests/libopkg_test.c +++ b/tests/libopkg_test.c @@ -1,15 +1,19 @@ #include - +#include int main (int argc, char **argv) { opkg_t *opkg; + int err; opkg = opkg_new (); opkg_set_option (opkg, "offline_root", "/tmp/"); + err = opkg_update_package_lists (opkg); + + printf ("opkg_update_package_lists returned %d\n", err); opkg_free (opkg); }