Cancellation support for the "pkg update" path.
modified libpkg/fetch_libcurl.c
@@ -1,5 +1,7 @@
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -166,12 +168,13 @@ curl_do_fetch(struct curl_userdata *data, CURL *cl, struct curl_repodata *cr)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -257,7 +260,7 @@ curl_parseheader_cb(void *ptr __unused, size_t size, size_t nmemb, void *userdat
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -265,8 +268,7 @@ curl_progress_cb(void *userdata, curl_off_t dltotal, curl_off_t dlnow, curl_off_
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -446,6 +448,8 @@ retry:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg.h.in
@@ -515,7 +515,11 @@ typedef enum {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg_event.c
@@ -1016,7 +1016,7 @@ pkg_emit_progress_start(const char *fmt, ...)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1025,8 +1025,7 @@ pkg_emit_progress_tick(int64_t current, int64_t total)
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/event.h
@@ -85,7 +85,7 @@ bool pkg_emit_query_yesno(bool deft, const char *msg);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/repo/binary/update.c
@@ -457,7 +457,7 @@ pkg_repo_binary_update_proceed(const char *name, struct pkg_repo *repo,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -530,13 +530,11 @@ pkg_repo_binary_update_proceed(const char *name, struct pkg_repo *repo,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
|
|
|
|
|