When creating a package, compute the flatsize if it is not specified in the manifest. Note that there is just a short leap from here to allowing the sizes of individual files to be recorded in the manifest, but that requires an API change.
modified libpkg/pkg_create.c
@@ -53,13 +53,14 @@ pkg_create_from_dir(struct pkg *pkg, const char *root,
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -70,8 +71,14 @@ pkg_create_from_dir(struct pkg *pkg, const char *root,
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -82,6 +89,7 @@ pkg_create_from_dir(struct pkg *pkg, const char *root,
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -152,6 +152,7 @@ struct pkg_category {
|
|
|
|
|
|
| + | |
|
|
|
|
|