From c4e896ceda14cb1515625b020c705b521f0e306d Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 05:10:21 +0000 Subject: [PATCH] opkg: add update packages lists call to libopkg_test git-svn-id: http://opkg.googlecode.com/svn/trunk@76 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- tests/libopkg_test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.25.1