fetch: introduce a new struct fetch_item
modified libpkg/fetch.c
@@ -112,6 +112,9 @@ pkg_fetch_file_tmp(struct pkg_repo *repo, const char *url, char *dest,
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -120,16 +123,18 @@ pkg_fetch_file_tmp(struct pkg_repo *repo, const char *url, char *dest,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -151,6 +156,7 @@ pkg_fetch_file(struct pkg_repo *repo, const char *url, char *dest, time_t t,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -158,7 +164,12 @@ pkg_fetch_file(struct pkg_repo *repo, const char *url, char *dest, time_t t,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -204,8 +215,8 @@ select_fetcher(const char *url)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -229,31 +240,31 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -269,16 +280,16 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -299,11 +310,11 @@ cleanup:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/fetch_file.c
@@ -33,28 +33,28 @@
|
|
|
|
|
|
| + | |
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -72,20 +72,20 @@ fh_close(struct pkg_repo *repo)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -93,13 +93,13 @@ stdio_fetch(struct pkg_repo *repo, int dest, const char *url, off_t sz, off_t of
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/fetch_libcurl.c
@@ -30,6 +30,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -83,10 +84,8 @@ curl_progress_cb(void *userdata, curl_off_t dltotal, curl_off_t dlnow, curl_off_
|
|
|
|
|
|
| - | |
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -106,7 +105,7 @@ curl_open(struct pkg_repo *repo, const char *u __unused,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -121,10 +120,10 @@ curl_fetch(struct pkg_repo *repo, int dest, const char *url, off_t sz, off_t off
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -134,8 +133,8 @@ curl_fetch(struct pkg_repo *repo, int dest, const char *url, off_t sz, off_t off
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -183,15 +182,15 @@ curl_fetch(struct pkg_repo *repo, int dest, const char *url, off_t sz, off_t off
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
modified libpkg/fetch_ssh.c
@@ -230,8 +230,8 @@ ssh_cleanup:
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -239,11 +239,11 @@ pkgprotocol_open(struct pkg_repo *repo, const char *u, off_t *sz,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -256,20 +256,20 @@ pkgprotocol_open(struct pkg_repo *repo, const char *u, off_t *sz,
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -290,15 +290,15 @@ out:
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_config.c
@@ -45,6 +45,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/pkg_repo.c
@@ -55,6 +55,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -70,11 +71,14 @@ int
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -104,10 +108,13 @@ pkg_repo_fetch_remote_tmp(struct pkg_repo *repo,
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/private/fetch.h
@@ -25,12 +25,28 @@
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified libpkg/private/pkg.h
@@ -43,6 +43,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -178,14 +179,7 @@ extern struct pkg_ctx ctx;
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -630,8 +624,8 @@ int pkg_delete(struct pkg *pkg, struct pkg *rpkg, struct pkgdb *db, int flags,
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|