Skip to content

Commit 1f3dfed

Browse files
committed
build: tweak debian source package build/upload options (#18962)
dput --passive should make repo pushes from Travis work again. dput --no-upload-log works around an issue I had while uploading locally. debuild -d says that debuild shouldn't check for build dependencies when creating the source package. This option is needed to make builds work in environments where the installed Go version doesn't match the declared dependency in the source package.
1 parent 2ae481f commit 1f3dfed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/ci.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ func doDebianSource(cmdline []string) {
513513
for _, distro := range debDistros {
514514
meta := newDebMetadata(distro, *signer, env, now, pkg.Name, pkg.Version, pkg.Executables)
515515
pkgdir := stageDebianSource(*workdir, meta)
516-
debuild := exec.Command("debuild", "-S", "-sa", "-us", "-uc")
516+
debuild := exec.Command("debuild", "-S", "-sa", "-us", "-uc", "-d")
517517
debuild.Dir = pkgdir
518518
build.MustRun(debuild)
519519

@@ -523,7 +523,7 @@ func doDebianSource(cmdline []string) {
523523
build.MustRunCommand("debsign", changes)
524524
}
525525
if *upload != "" {
526-
build.MustRunCommand("dput", *upload, changes)
526+
build.MustRunCommand("dput", "--passive", "--no-upload-log", *upload, changes)
527527
}
528528
}
529529
}

0 commit comments

Comments
 (0)