Skip to content

Commit

Permalink
fix: fixed empty lists on deb
Browse files Browse the repository at this point in the history
closes #16
  • Loading branch information
caarlos0 committed Mar 10, 2018
1 parent c0f9540 commit eb61406
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions deb/deb.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,24 @@ Architecture: {{.Info.Arch}}
Maintainer: {{.Info.Maintainer}}
Vendor: {{.Info.Vendor}}
Installed-Size: {{.InstalledSize}}
Replaces: {{join .Info.Replaces}}
Provides: {{join .Info.Provides}}
Depends: {{join .Info.Depends}}
Recommends: {{join .Info.Recommends}}
Suggests: {{join .Info.Suggests}}
Conflicts: {{join .Info.Conflicts}}
{{- with .Info.Replaces}}
Replaces: {{join .}}
{{- end }}
{{- with .Info.Provides}}
Provides: {{join .}}
{{- end }}
{{- with .Info.Depends}}
Depends: {{join .}}
{{- end }}
{{- with .Info.Recommends}}
Recommends: {{join .}}
{{- end }}
{{- with .Info.Suggests}}
Suggests: {{join .}}
{{- end }}
{{- with .Info.Conflicts}}
Conflicts: {{join .}}
{{- end }}
Homepage: {{.Info.Homepage}}
Description: {{.Info.Description}}
`
Expand Down

0 comments on commit eb61406

Please sign in to comment.