diff mbox series

[bug#49348,v2,2/4] pack/deb: Add default section and priority fields to the control file.

Message ID 20210706211139.2806-2-maxim.cournoyer@gmail.com
State Accepted
Headers show
Series [bug#49348,v2,1/4] pack: Allow embedding custom control files in deb packs. | expand

Commit Message

Maxim Cournoyer July 6, 2021, 9:11 p.m. UTC
These fields, while optional per dpkg, are required by other tools such as
reprepro, commonly used to generate apt repositories.

* guix/scripts/pack.scm (debian-archive): Set the control file section field
to 'misc' and the priority field to 'optional'.
 guix/scripts/pack.scm | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index 6a8d49e042..78201d6f5f 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -805,6 +805,8 @@  Version: ~a
 Description: Debian archive generated by GNU Guix.
 Maintainer: GNU Guix
 Architecture: ~a
+Priority: optional
+Section: misc
 ~%" package-name package-version architecture))))
             (when postinst-file