49aef22c9a379dd218f690128cc58d9fcaf4588e
6 progress_callback (opkg_t
*opkg
, int percent
, void *data
)
8 printf ("%s %d\n", (char*) data
, percent
);
13 main (int argc
, char **argv
)
20 opkg_set_option (opkg
, "offline_root", "/tmp/");
22 opkg_read_config_files (opkg
);
24 err
= opkg_update_package_lists (opkg
, progress_callback
, "Updating...");
26 printf ("opkg_update_package_lists returned %d\n", err
);
28 err
= opkg_install_package (opkg
, "aspell", progress_callback
, "Installing...");
30 printf ("opkg_install_package returned %d\n", err
);