curl: readd support for SRV mirroring type
modified libpkg/fetch.c
@@ -157,6 +157,7 @@ pkg_fetch_file(struct pkg_repo *repo, const char *url, char *dest, time_t t,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -164,12 +165,19 @@ pkg_fetch_file(struct pkg_repo *repo, const char *url, char *dest, time_t t,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -184,7 +192,6 @@ pkg_fetch_file(struct pkg_repo *repo, const char *url, char *dest, time_t t,
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -244,6 +251,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, int dest, struct fetch_item *fi,
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/fetch_libcurl.c
@@ -32,6 +32,12 @@
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -60,13 +66,13 @@ curl_parseheader_cb(void *ptr __unused, size_t size, size_t nmemb, void *userdat
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -87,19 +93,45 @@ curl_progress_cb(void *userdata, curl_off_t dltotal, curl_off_t dlnow, curl_off_
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -108,14 +140,17 @@ int
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
| + | |
|
|
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -126,6 +161,33 @@ curl_fetch(struct pkg_repo *repo, int dest, struct fetch_item *fi)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -133,7 +195,6 @@ curl_fetch(struct pkg_repo *repo, int dest, struct fetch_item *fi)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -148,29 +209,34 @@ curl_fetch(struct pkg_repo *repo, int dest, struct fetch_item *fi)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -178,7 +244,7 @@ curl_fetch(struct pkg_repo *repo, int dest, struct fetch_item *fi)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -187,12 +253,14 @@ curl_fetch(struct pkg_repo *repo, int dest, struct fetch_item *fi)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/repo/binary/fetch.c
@@ -200,7 +200,7 @@ pkg_repo_binary_try_fetch(struct pkg_repo *repo, struct pkg *pkg,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|