Reduce memory allocation during pkg update while here add debugs
modified libpkg/pkg_manifest.c
@@ -791,7 +791,7 @@ pkg_parse_manifest_archive(struct pkg *pkg, struct archive *a, struct pkg_manife
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -811,7 +811,7 @@ pkg_parse_manifest(struct pkg *pkg, char *buf, struct pkg_manifest_key *keys)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -831,7 +831,7 @@ pkg_parse_manifest_file(struct pkg *pkg, FILE *f, struct pkg_manifest_key *keys)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/update.c
@@ -367,7 +367,7 @@ pkg_update_full(const char *repofile, struct pkg_repo *repo, time_t *mtime)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -378,9 +378,15 @@ pkg_add_from_manifest(FILE *f, const char *origin, long offset,
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -409,8 +415,6 @@ pkg_add_from_manifest(FILE *f, const char *origin, long offset,
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -457,6 +461,7 @@ pkg_update_incremental(const char *name, struct pkg_repo *repo, time_t *mtime)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -493,6 +498,7 @@ pkg_update_incremental(const char *name, struct pkg_repo *repo, time_t *mtime)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -530,6 +536,7 @@ pkg_update_incremental(const char *name, struct pkg_repo *repo, time_t *mtime)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -543,10 +550,12 @@ pkg_update_incremental(const char *name, struct pkg_repo *repo, time_t *mtime)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -556,6 +565,8 @@ pkg_update_incremental(const char *name, struct pkg_repo *repo, time_t *mtime)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|