summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/opkg_download.c')
-rw-r--r--libopkg/opkg_download.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index 33019d8..2ee97bf 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -41,7 +41,6 @@
#include "includes.h"
#include "opkg_download.h"
#include "opkg_message.h"
-#include "opkg_state.h"
#include "sprintf_alloc.h"
#include "xsystem.h"
@@ -216,7 +215,6 @@ int opkg_download_pkg(opkg_conf_t *conf, pkg_t *pkg, const char *dir)
{
int err;
char *url;
- char *pkgid;
char *stripped_filename;
if (pkg->src == NULL) {
@@ -229,10 +227,6 @@ int opkg_download_pkg(opkg_conf_t *conf, pkg_t *pkg, const char *dir)
return -1;
}
- sprintf_alloc (&pkgid, "%s;%s;%s;", pkg->name, pkg->version, pkg->architecture);
- opkg_set_current_state (conf, OPKG_STATE_DOWNLOADING_PKG, pkgid);
- free (pkgid);
-
sprintf_alloc(&url, "%s/%s", pkg->src->value, pkg->filename);
/* XXX: BUG: The pkg->filename might be something like
@@ -249,7 +243,6 @@ int opkg_download_pkg(opkg_conf_t *conf, pkg_t *pkg, const char *dir)
err = opkg_download_cache(conf, url, pkg->local_filename, NULL, NULL);
free(url);
- opkg_set_current_state (conf, OPKG_STATE_NONE, NULL);
return err;
}