From b6ceb5e11ae20ede9b30979d4b54c56f84e89eaf Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:12:27 -0500 Subject: opkg: improve download callback handling and integrate into opkg_update_package_lists git-svn-id: http://opkg.googlecode.com/svn/trunk@86 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_cmd.c') diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c index 42443a5..a7f9b1a 100644 --- a/libopkg/opkg_cmd.c +++ b/libopkg/opkg_cmd.c @@ -226,7 +226,7 @@ static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv) FILE *in, *out; sprintf_alloc (&tmp_file_name, "%s/%s.gz", tmp, src->name); - err = opkg_download(conf, url, tmp_file_name); + err = opkg_download(conf, url, tmp_file_name, NULL, NULL); if (err == 0) { opkg_message (conf, OPKG_NOTICE, "Inflating %s\n", url); in = fopen (tmp_file_name, "r"); @@ -242,7 +242,7 @@ static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv) unlink (tmp_file_name); } } else - err = opkg_download(conf, url, list_file_name); + err = opkg_download(conf, url, list_file_name, NULL, NULL); if (err) { failures++; } else { @@ -266,7 +266,7 @@ static int opkg_update_cmd(opkg_conf_t *conf, int argc, char **argv) sprintf_alloc (&tmp_file_name, "%s/%s", tmp, "Packages.sig"); - err = opkg_download(conf, url, tmp_file_name); + err = opkg_download(conf, url, tmp_file_name, NULL, NULL); if (err) { failures++; opkg_message (conf, OPKG_NOTICE, "Signature check failed\n"); -- cgit v0.9.1