X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Fopkg_download.c;h=6cce64a82f18ebe5b316219fd8a4b06c985c6b8b;hp=bbd6efef868bf9deab58b6a58e703df96bd807d2;hb=f0f991d840b00e43f09bfa363ac1e7350098c180;hpb=db0e8730f2e7b2c584c4c16bf8c32170c5b372e4 diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c index bbd6efe..6cce64a 100644 --- a/libopkg/opkg_download.c +++ b/libopkg/opkg_download.c @@ -213,7 +213,7 @@ int opkg_download_pkg(opkg_conf_t *conf, pkg_t *pkg, const char *dir) } sprintf_alloc (&pkgid, "%s;%s;%s;", pkg->name, pkg->version, pkg->architecture); - opkg_set_current_state (OPKG_STATE_DOWNLOADING_PKG, pkgid); + opkg_set_current_state (conf, OPKG_STATE_DOWNLOADING_PKG, pkgid); free (pkgid); sprintf_alloc(&url, "%s/%s", pkg->src->value, pkg->filename); @@ -227,7 +227,7 @@ int opkg_download_pkg(opkg_conf_t *conf, pkg_t *pkg, const char *dir) err = opkg_download(conf, url, pkg->local_filename); free(url); - opkg_set_current_state (OPKG_STATE_NONE, NULL); + opkg_set_current_state (conf, OPKG_STATE_NONE, NULL); return err; }