Isolate loading metadata in a dedicated function for further code deduplication
modified libpkg/libpkg.ver
@@ -79,6 +79,7 @@ global:
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -135,8 +136,6 @@ global:
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -164,6 +163,8 @@ global:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg.h.in
@@ -1134,6 +1134,7 @@ int pkg_create_from_manifest(const char *, pkg_formats, const char *,
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/pkg_create.c
@@ -320,35 +320,24 @@ pkg_load_message_from_file(int fd, struct pkg *pkg, const char *path)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
| + | |
|
|
|
|
|
@@ -370,6 +359,7 @@ pkg_create_staged(const char *outdir, pkg_formats format, const char *rootdir,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -400,6 +390,34 @@ pkg_create_staged(const char *outdir, pkg_formats format, const char *rootdir,
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -418,15 +436,9 @@ pkg_create_staged(const char *outdir, pkg_formats format, const char *rootdir,
|
|
|
|
|
|
| - | |
|
|
| - | |
| - | |
|
|
| - | |
| - | |
|
|
| - | |
|
|
|
|
|