From b427dfbf01c2f8fb8908a28bccbefd1fc1c6595c Mon Sep 17 00:00:00 2001 From: javiplx@gmail.com Date: Thu, 07 Apr 2011 11:03:54 -0400 Subject: Add flag in opkg_download calls to reduce the severity of the 'failed download' message git-svn-id: http://opkg.googlecode.com/svn/trunk@610 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg.c') diff --git a/libopkg/opkg.c b/libopkg/opkg.c index 0757370..7c3e18f 100644 --- a/libopkg/opkg.c +++ b/libopkg/opkg.c @@ -342,7 +342,7 @@ opkg_install_package(const char *package_name, err = opkg_download(url, pkg->local_filename, (curl_progress_func) curl_progress_cb, - &cb_data); + &cb_data, 0); free(url); if (err) { @@ -613,7 +613,7 @@ opkg_update_package_lists(opkg_progress_callback_t progress_callback, err = opkg_download(url, tmp_file_name, (curl_progress_func) curl_progress_cb, - &cb_data); + &cb_data, 0); if (err == 0) { opkg_msg(INFO, "Inflating %s...\n", @@ -632,7 +632,7 @@ opkg_update_package_lists(opkg_progress_callback_t progress_callback, } free(tmp_file_name); } else - err = opkg_download(url, list_file_name, NULL, NULL); + err = opkg_download(url, list_file_name, NULL, NULL, 0); if (err) { opkg_msg(ERROR, "Couldn't retrieve %s\n", url); @@ -659,7 +659,7 @@ opkg_update_package_lists(opkg_progress_callback_t progress_callback, /* make sure there is no existing signature file */ unlink(sig_file_name); - err = opkg_download(url, sig_file_name, NULL, NULL); + err = opkg_download(url, sig_file_name, NULL, NULL, 0); if (err) { opkg_msg(ERROR, "Couldn't retrieve %s\n", url); } else { @@ -864,7 +864,7 @@ opkg_repository_accessibility_check(void) iter1 = str_list_pop(src); repositories--; - if (opkg_download(iter1->data, "/dev/null", NULL, NULL)) + if (opkg_download(iter1->data, "/dev/null", NULL, NULL, 0)) ret++; str_list_elt_deinit(iter1); } -- cgit v0.9.1