diff options
author | Dave Reisner <d@falconindy.com> | 2011-01-15 13:59:45 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2011-03-09 15:22:32 -0500 |
commit | 278c84710637a891c3407c3811f61b181359ea75 (patch) | |
tree | 9fa1b4d96f7db3e614ebb25ab4780882959f7d37 /lib/libalpm/package.c | |
parent | 75bfe825fc4018173b0d7a3c4029094edb52d93a (diff) |
handle: Add CURL* and CURLcode vars to struct
Adding the CURLcode is necessary in order to return an error string from
pm_error. Unlike libfetch, curl returns numerical error numbers and does
not maintain a staticly allocated string with the last error generated.
Adding the curl object itself to the handle is advantageous (and
encouraged by curl_easy_perform(3)) because the handle is reusable for
successive operations. This cuts back on overhead when downloading
multiple files in a single transaction.
Signed-off-by: Dave Reisner <d@falconindy.com>
Diffstat (limited to 'lib/libalpm/package.c')
0 files changed, 0 insertions, 0 deletions