Skip to content

Commit

Permalink
Set a Section: TODO field for program packages
Browse files Browse the repository at this point in the history
The golang section is for Go development packages, the fact that a
program is written in Go is generally of no major relevance for the
user, and instead a more suitable section relative to its actual
functionality should be used, to help a proper categorization in the
archive.
  • Loading branch information
guillemj committed Dec 4, 2021
1 parent b0edb5b commit 561536f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func addLibraryPackage(f *os.File, gopkg, debLib string, dependencies []string)
func addProgramPackage(f *os.File, gopkg, debProg string) {
fmt.Fprintf(f, "\n")
fmt.Fprintf(f, "Package: %s\n", debProg)
fmt.Fprintf(f, "Section: TODO\n")
fmt.Fprintf(f, "Architecture: any\n")
deps := []string{"${misc:Depends}", "${shlibs:Depends}"}
fprintfControlField(f, "Depends", deps)
Expand Down

0 comments on commit 561536f

Please sign in to comment.