X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=package%2Fopkg%2Fpatches%2F001-use-wget;h=e6c7e9ca0e58c6630ea9bcd0bd4aa6273ba921d4;hp=a8ec7c518ac7e28627f2a272fedc9c8eb769a97b;hb=227367d3a32d0593c717a1cf00447df83752bbd7;hpb=a2110d5d1f134a65b9959d3b74c3bcefbc0ff6c1 diff --git a/package/opkg/patches/001-use-wget b/package/opkg/patches/001-use-wget index a8ec7c518..e6c7e9ca0 100644 --- a/package/opkg/patches/001-use-wget +++ b/package/opkg/patches/001-use-wget @@ -75,3 +75,34 @@ Index: opkg-4561/configure.ac dnl ********** +Index: opkg-4561/libopkg/opkg.c +=================================================================== +--- opkg-4561/libopkg/opkg.c-orig 2008-07-28 16:27:53.000000000 -0500 ++++ opkg-4561/libopkg/opkg.c 2008-07-29 07:46:42.000000000 -0500 +@@ -1013,8 +1013,9 @@ + + return package; + } +- ++#ifdef HAVE_CURL + #include ++#endif + /** + * @brief Check the accessibility of repositories. It will try to access the repository to check if the respository is accessible throught current network status. + * @param opkg The opkg_t +@@ -1064,6 +1065,7 @@ + repositories--; + + err = opkg_download(opkg->conf, iter1->data, "/dev/null", NULL, NULL); ++ #ifdef HAVE_CURL + if (!(err == CURLE_OK || + err == CURLE_HTTP_RETURNED_ERROR || + err == CURLE_FILE_COULDNT_READ_FILE || +@@ -1072,6 +1074,7 @@ + )) { + ret++; + } ++ #endif + str_list_elt_deinit(iter1); + free(iter1); + }