1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-06-01 22:16:25 +02:00
nfpm/deb/testdata/minimal.golden
Michael Hanselmann 052766cdfa deb: Avoid emitting empty fields
The Debian policy[1] declares the following control file fields as
required for binary packages:

 * Package
 * Version
 * Section
 * Priority
 * Architecture
 * Maintainer
 * Description

All other fields are optional. A few programs handling .deb packages
emit warnings when optional fields exist without a value.

With this change the template generating the control file is updated to
omit empty values. Comments are added to denote mandatory fields.
A newly added test verifies the generated control file.

[1]
<https://www.debian.org/doc/debian-policy/ch-controlfields.html#
binary-package-control-files-debian-control>

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2019-03-04 10:03:59 -03:00

8 lines
137 B
Plaintext

Package: minimal
Version: 1.0.0
Section: default
Priority: extra
Architecture: arm64
Installed-Size: 0
Description: Minimal does nothing