Simplify a bit the internal API by always trying to use fd
modified libpkg/pkg_repo.c
@@ -513,7 +513,7 @@ pkg_repo_parse_sigkeys(const char *in, int inlen, struct sig_cert **sc)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -531,23 +531,7 @@ pkg_repo_archive_extract_archive(int fd, const char *file,
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -592,7 +576,6 @@ pkg_repo_archive_extract_archive(int fd, const char *file,
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -603,22 +586,19 @@ cleanup:
|
|
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -627,13 +607,13 @@ pkg_repo_archive_extract_check_archive(int fd, const char *file,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -642,18 +622,18 @@ pkg_repo_archive_extract_check_archive(int fd, const char *file,
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -664,14 +644,11 @@ pkg_repo_archive_extract_check_archive(int fd, const char *file,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -704,7 +681,7 @@ pkg_repo_fetch_remote_extract_fd(struct pkg_repo *repo, const char *filename,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -794,29 +771,27 @@ pkg_repo_fetch_meta(struct pkg_repo *repo, time_t *t)
|
|
|
|
|
|
| - | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -829,11 +804,14 @@ pkg_repo_fetch_meta(struct pkg_repo *repo, time_t *t)
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -842,20 +820,19 @@ pkg_repo_fetch_meta(struct pkg_repo *repo, time_t *t)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -886,8 +863,8 @@ pkg_repo_fetch_meta(struct pkg_repo *repo, time_t *t)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -902,7 +879,7 @@ pkg_repo_fetch_meta(struct pkg_repo *repo, time_t *t)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -922,7 +899,7 @@ cleanup:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_repo_create.c
@@ -539,12 +539,18 @@ pkg_create_repo(char *path, const char *output_dir, bool filelist,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -913,7 +919,7 @@ pkg_finish_repo(const char *output_dir, pkg_password_cb *password_cb,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -942,13 +948,13 @@ pkg_finish_repo(const char *output_dir, pkg_password_cb *password_cb,
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| + | |
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_repo_meta.c
@@ -247,7 +247,7 @@ pkg_repo_meta_version(ucl_object_t *top)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -256,8 +256,8 @@ pkg_repo_meta_load(const char *file, struct pkg_repo_meta **target)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -268,7 +268,7 @@ pkg_repo_meta_load(const char *file, struct pkg_repo_meta **target)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -279,14 +279,14 @@ pkg_repo_meta_load(const char *file, struct pkg_repo_meta **target)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -643,7 +643,7 @@ int pkg_repo_fetch_remote_extract_fd(struct pkg_repo *repo,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/utils.h
@@ -73,8 +73,7 @@ int is_dir(const char *);
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
modified libpkg/repo/binary/init.c
@@ -26,6 +26,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -297,37 +298,37 @@ int
|
|
|
|
|
|
| - | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -411,37 +412,20 @@ int
|
|
|
|
|
|
| - | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/rsa.c
@@ -201,8 +201,7 @@ rsa_verify_cb(int fd, void *ud)
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -215,14 +214,6 @@ rsa_verify(const char *path, const char *key, unsigned char *sig,
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|