summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-03 20:22:05 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-03 20:22:05 (EST)
commit84d0ba0f9bf218898dcf33c0178449cc045ecd8c (patch)
treeb73a306ad010d5a53611ae04f48bc56b3346d899 /libopkg/opkg_download.c
parentb3a54f7c2d686dbec049d3788f5096c01360c5c4 (diff)
Remove unused opkg_set_current_state bits.
git-svn-id: http://opkg.googlecode.com/svn/trunk@252 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
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;
}