Skip to content

Set non-zero size if there are any files in the package

Gray Wolf requested to merge (removed):fix-size into master

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.

Merge request reports

Loading