Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FreeBSD package: Fix missing leading
/
in archive
This is a simple workaround, which transforms the filenames inside the tar archive so that they start with `/`. This happens only in case the filename doesn't begin with `+`, which is expected (or at least is very likely) to be a metadata file. ``` $ tar --list -f test-package-0.0.1.txz +COMPACT_MANIFEST +MANIFEST /etc/config /usr/bin/script $ pkg install -y test-package-0.0.1.txz && echo OK Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: test-package: 0.0.1 Number of packages to be installed: 1 [1/1] Installing test-package-0.0.1... Extracting test-package-0.0.1: 100% OK ``` Fixes #1811 Signed-off-by: Vlastimil Holer <vholer@opennebula.io>
- Loading branch information