[SCM] Packaging for Google Go branch, debian-sid, updated. debian/1%58.1-2-25-ga6bb7fb

Ondřej Surý ondrej at sury.org
Thu Oct 6 07:34:10 UTC 2011


The following commit has been merged in the debian-sid branch:
commit ee58407683e001bddc5180dd6f4af086f95e75f9
Author: Ondřej Surý <ondrej at sury.org>
Date:   Tue Sep 13 11:59:49 2011 +0200

    Read goinstall dashboard option from debian configuration file

diff --git a/debian/patches/010-goinstall_check_conf.patch b/debian/patches/010-goinstall_check_conf.patch
new file mode 100644
index 0000000..4d1f199
--- /dev/null
+++ b/debian/patches/010-goinstall_check_conf.patch
@@ -0,0 +1,28 @@
+--- a/src/cmd/goinstall/main.go
++++ b/src/cmd/goinstall/main.go
+@@ -35,7 +35,7 @@ var (
+ 	installedPkgs = make(map[string]bool)
+ 
+ 	allpkg            = flag.Bool("a", false, "install all previously installed packages")
+-	reportToDashboard = flag.Bool("dashboard", true, "report public packages at "+dashboardURL)
++	reportToDashboard *bool
+ 	logPkgs           = flag.Bool("log", true, "log installed packages to $GOROOT/goinstall.log for use by -a")
+ 	update            = flag.Bool("u", false, "update already-downloaded packages")
+ 	doInstall         = flag.Bool("install", true, "build and install")
+@@ -45,6 +45,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
diff --git a/debian/patches/series b/debian/patches/series
index 68f6cd7..af60555 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 007-use_native_dynamic_linker_on_kfreebsd.patch
 008-emacs-mode-key-literal-indent.patch
 009-goinstall_can_install_to_GOPATH.patch
+010-goinstall_check_conf.patch

-- 
Packaging for Google Go



More information about the Pkg-google-commits mailing list