Skip to content

Commit e17a643

Browse files
authored
Merge pull request #178 from guillemj/pu/reorder-fields
Reorder generated fields
2 parents b0edb5b + 9da71c1 commit e17a643

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

template.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ func writeDebianControl(dir, gopkg, debsrc, debLib, debProg string, pkgType pack
190190
// Source package:
191191

192192
fmt.Fprintf(f, "Source: %s\n", debsrc)
193-
fmt.Fprintf(f, "Maintainer: Debian Go Packaging Team <[email protected]>\n")
194-
fprintfControlField(f, "Uploaders", []string{getDebianName() + " <" + getDebianEmail() + ">"})
195193
fmt.Fprintf(f, "Section: golang\n")
196-
fmt.Fprintf(f, "Testsuite: autopkgtest-pkg-go\n")
197194
fmt.Fprintf(f, "Priority: optional\n")
195+
fmt.Fprintf(f, "Maintainer: Debian Go Packaging Team <[email protected]>\n")
196+
fprintfControlField(f, "Uploaders", []string{getDebianName() + " <" + getDebianEmail() + ">"})
197+
fmt.Fprintf(f, "Rules-Requires-Root: no\n")
198198

199199
builddeps := append([]string{
200200
"debhelper-compat (= 13)",
@@ -204,11 +204,11 @@ func writeDebianControl(dir, gopkg, debsrc, debLib, debProg string, pkgType pack
204204
sort.Strings(builddeps)
205205
fprintfControlField(f, "Build-Depends", builddeps)
206206

207+
fmt.Fprintf(f, "Testsuite: autopkgtest-pkg-go\n")
207208
fmt.Fprintf(f, "Standards-Version: 4.6.0\n")
208209
fmt.Fprintf(f, "Vcs-Browser: https://salsa.debian.org/go-team/packages/%s\n", debsrc)
209210
fmt.Fprintf(f, "Vcs-Git: https://salsa.debian.org/go-team/packages/%s.git\n", debsrc)
210211
fmt.Fprintf(f, "Homepage: %s\n", getHomepageForGopkg(gopkg))
211-
fmt.Fprintf(f, "Rules-Requires-Root: no\n")
212212
fmt.Fprintf(f, "XS-Go-Import-Path: %s\n", gopkg)
213213

214214
// Binary package(s):
@@ -259,9 +259,9 @@ func writeDebianCopyright(dir, gopkg string, vendorDirs []string, hasGodeps bool
259259
}
260260

261261
fmt.Fprintf(f, "Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\n")
262+
fmt.Fprintf(f, "Source: %s\n", getHomepageForGopkg(gopkg))
262263
fmt.Fprintf(f, "Upstream-Name: %s\n", filepath.Base(gopkg))
263264
fmt.Fprintf(f, "Upstream-Contact: TODO\n")
264-
fmt.Fprintf(f, "Source: %s\n", getHomepageForGopkg(gopkg))
265265
if len(vendorDirs) > 0 || hasGodeps {
266266
fmt.Fprintf(f, "Files-Excluded:\n")
267267
for _, dir := range vendorDirs {

0 commit comments

Comments
 (0)