1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-11-18 14:54:04 +01:00
nfpm/acceptance
Erik G 59de11a9e4
fix: deb file path prefixes and md5sums file (#218)
* fix: Ensure relative path prefix for deb packages

This patch ensures that all items contained in tar.gz files in Debian
packages have a relative path prefix, so the names all start with "./".
While this is not strictly required for a Debian package to function,
detecting a changed config file fails with an error messages similar to
the following:

    tar: ./etc/default/conffilename: Not found in archive

It seems to fail extracting config files for checking if they have been
modified by the system administrator.

All reference documentation that I was able to find (e.g. in the Debian
Handbook[1]) shows that all paths contained in either data.tar.gz and
control.tar.gz have the prefix "./".

I've verified that with this change, config files works as expected.

[1] https://debian-handbook.info/browse/stable/packaging-system.html#sect.binary-package-structure

* fix: Remove dpkg filters for changelog acceptance test.

* fix: Fix broken md5sums file when a changelog is added.

Co-authored-by: Alexander Neumann <alexander.neumann@redteam-pentesting.de>
2020-08-24 16:34:28 -03:00
..
testdata fix: deb file path prefixes and md5sums file (#218) 2020-08-24 16:34:28 -03:00
acceptance_test.go feat: apk support (#207) 2020-08-17 17:28:38 -03:00
placeholder.go fix: add stricter linting (#87) 2019-10-11 13:11:28 -07:00