Refactor the I/O error events into a single event.
modified libpkg/fetch.c
@@ -29,7 +29,7 @@ pkg_fetch_file(const char *url, const char *dest, void *data, fetch_cb cb)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -55,7 +55,7 @@ pkg_fetch_file(const char *url, const char *dest, void *data, fetch_cb cb)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/packing.c
@@ -121,8 +121,8 @@ packing_append_file(struct packing *pack, const char *filepath, const char *newp
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg.h
@@ -583,7 +583,6 @@ typedef enum {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -593,21 +592,17 @@ typedef enum {
|
|
|
|
|
|
| - | |
|
|
| + | |
|
|
|
|
|
|
| - | |
| - | |
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified libpkg/pkg_event.c
@@ -31,17 +31,15 @@ libpkg_handle_event(pkg_event_t ev, void **argv)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -89,15 +87,6 @@ libpkg_handle_event(pkg_event_t ev, void **argv)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified libpkg/pkg_util.c
@@ -70,15 +70,15 @@ file_to_buffer(const char *path, char **buffer, off_t *sz)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -91,7 +91,7 @@ file_to_buffer(const char *path, char **buffer, off_t *sz)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -214,7 +214,7 @@ sha256_file(const char *path, char out[65])
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -227,7 +227,7 @@ sha256_file(const char *path, char out[65])
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkgdb.c
@@ -263,12 +263,12 @@ pkgdb_open(struct pkgdb **db, pkgdb_t type)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -281,7 +281,7 @@ pkgdb_open(struct pkgdb **db, pkgdb_t type)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|