mirror of
https://github.com/goreleaser/nfpm
synced 2024-05-18 08:16:22 +02:00
98a59ec16d
Debian control files (DCF) have a number of optional fields [0] -- including "Bugs" and "Tags" -- that are used by many existing packages. The original fpm supports adding arbitrary fields to DCFs with the --deb-field flag [1], but until now it was not possible to do so with nfpm. This commit introduces a new deb-specific override, "fields", that simply translates key-value pairs from a map directly into the DCF. Given the following nfpm config file entry: deb: fields: Bugs: https://github.com/goreleaser/nfpm/issues The resulting DCF would contain the entry Bugs: https://github.com/goreleaser/nfpm/issues To avoid generating malformed DCFs, we simply ignore empty entries. This commit includes unit tests and updates to the website documentation. Closes #490. [0]: https://man7.org/linux/man-pages/man5/deb-control.5.html [1]: https://fpm.readthedocs.io/en/latest/packages/deb.html?highlight=changelog#deb-specific-command-line-flags Signed-off-by: Aaron Jacobs <aaron.jacobs@rstudio.com> |
||
---|---|---|
.. | ||
docs | ||
htmltest.yml | ||
mkdocs.yml |