r4382 - trunk/src/target/opkg/tests

thomas at sita.openmoko.org thomas at sita.openmoko.org
Mon Apr 21 11:19:59 CEST 2008


Author: thomas
Date: 2008-04-21 11:19:58 +0200 (Mon, 21 Apr 2008)
New Revision: 4382

Modified:
   trunk/src/target/opkg/tests/libopkg_test.c
Log:
opkg: add update packages lists call to libopkg_test


Modified: trunk/src/target/opkg/tests/libopkg_test.c
===================================================================
--- trunk/src/target/opkg/tests/libopkg_test.c	2008-04-19 04:43:55 UTC (rev 4381)
+++ trunk/src/target/opkg/tests/libopkg_test.c	2008-04-21 09:19:58 UTC (rev 4382)
@@ -1,15 +1,19 @@
 #include <opkg.h>
+#include <stdlib.h>
 
-
 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);
 }





More information about the commitlog mailing list