if (err)
{
opkg_package_free (pdata.package);
- return OPKG_UNKOWN_ERROR;
+ return OPKG_UNKNOWN_ERROR;
}
/* write out status files and file lists */
int
opkg_upgrade_package (opkg_t *opkg, const char *package_name, opkg_progress_callback_t progress_callback, void *user_data)
{
+ int err;
pkg_t *pkg;
opkg_progress_data_t pdata;
err = opkg_configure_packages (opkg->conf, NULL);
if (err)
- OPKG_UNKNOWN_ERROR;
+ return OPKG_UNKNOWN_ERROR;
progress (pdata, 100);
opkg_package_free (pdata.package);
return 0;