The source project of this merge request has been removed.
Set non-zero size if there are any files in the package
If there are only empty files in the pkgdir, on some filesystems (discovered on btrfs), du might return 0 for the sum size of the files. But apk-tools considers packages with size = 0 to be virtual and skips extraction of any files contained.
To work around that (until it is resolved in apk-tools 3), settings the size to 1 when it is zero AND some files are present should work fine.