summaryrefslogtreecommitdiff
path: root/debian/patches/010-goinstall_check_conf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/010-goinstall_check_conf.patch')
-rw-r--r--debian/patches/010-goinstall_check_conf.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/debian/patches/010-goinstall_check_conf.patch b/debian/patches/010-goinstall_check_conf.patch
deleted file mode 100644
index 64657a484..000000000
--- a/debian/patches/010-goinstall_check_conf.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- a/src/cmd/goinstall/main.go
-+++ b/src/cmd/goinstall/main.go
-@@ -38,7 +38,7 @@ var (
- schemeRe = regexp.MustCompile(`^[a-z]+://`)
-
- allpkg = flag.Bool("a", false, "install all previously installed packages")
-- reportToDashboard = flag.Bool("dashboard", true, "report public packages at "+dashboardURL)
-+ reportToDashboard *bool
- update = flag.Bool("u", false, "update already-downloaded packages")
- doGofix = flag.Bool("fix", false, "gofix each package before building it")
- doInstall = flag.Bool("install", true, "build and install")
-@@ -48,6 +48,16 @@ var (
- verbose = flag.Bool("v", false, "verbose")
- )
-
-+func init() {
-+ d := true
-+ b, err := ioutil.ReadFile("/etc/golang/goinstall.conf")
-+ if err == nil {
-+ re := regexp.MustCompile(`(^|\n)DASHBOARD="[nN][oO]"($|\n)`)
-+ d = !re.Match(b)
-+ }
-+ reportToDashboard = flag.Bool("dashboard", d, "report public packages at "+dashboardURL)
-+}
-+
- type status int // status for visited map
- const (
- unvisited status = iota